###############################################################################
# Copyright Lewis Baker
# Licenced under MIT license. See LICENSE.txt for details.
###############################################################################

import cake.path

from cake.tools import compiler, script, env, project

includes = cake.path.join(env.expand('${CPPCORO}'), 'include', 'cppcoro', [
  'broken_promise.hpp',
  'task.hpp',
  'single_consumer_event.hpp',
  ])

sources = script.cwd([
  'async_mutex.cpp',
  ])

extras = script.cwd([
  'build.cake',
  'use.cake',
  ])

buildDir = env.expand('${CPPCORO_BUILD}')

compiler.addIncludePath(env.expand('${CPPCORO}/include'))

objects = compiler.objects(
  targetDir=env.expand('${CPPCORO_BUILD}/obj'),
  sources=sources,
  )

lib = compiler.library(
  target=env.expand('${CPPCORO_LIB}/cppcoro'),
  sources=objects,
  )

vcproj = project.project(
  target=env.expand('${CPPCORO_PROJECT}/cppcoro'),
  items={
    'Include': includes,
    'Source': sources,
    '': extras
  },
  output=lib,
  )

script.setResult(
  project=vcproj,
  library=lib,
  )

###############################################################################
# Copyright Lewis Baker
# Licenced under MIT license. See LICENSE.txt for details.
###############################################################################

import cake.path

from cake.tools import compiler, script, env, project

includes = cake.path.join(env.expand('${CPPCORO}'), 'include', 'cppcoro', [
  'async_mutex.hpp',
  'broken_promise.hpp',
  'lazy_task.hpp',
  'single_consumer_event.hpp',
  'task.hpp',
  ])

sources = script.cwd([
  'async_mutex.cpp',
  ])

extras = script.cwd([
  'build.cake',
  'use.cake',
  ])

buildDir = env.expand('${CPPCORO_BUILD}')

compiler.addIncludePath(env.expand('${CPPCORO}/include'))

objects = compiler.objects(
  targetDir=env.expand('${CPPCORO_BUILD}/obj'),
  sources=sources,
  )

lib = compiler.library(
  target=env.expand('${CPPCORO_LIB}/cppcoro'),
  sources=objects,
  )

vcproj = project.project(
  target=env.expand('${CPPCORO_PROJECT}/cppcoro'),
  items={
    'Include': includes,
    'Source': sources,
    '': extras
  },
  output=lib,
  )

script.setResult(
  project=vcproj,
  library=lib,
  )

Add some missing headers to generated .vcproj file.
Add some missing headers to generated .vcproj file.
