Sha256: 9b0263b2e5e018855f332edc1daf5e9202a4fb2c37f0deb4ace3121d30d2884a

Contents?: true

Size: 572 Bytes

Versions: 10

Compression:

Stored size: 572 Bytes

Contents

cxx_configuration do

  source_lib "testme",
    :sources => FileList['**/*.cpp'],
    :includes => ['include'],
    :dependencies => []

  # using lambdas
  custom "testcustom",
    :execute => lambda { puts "executing testcustom" },
    :dependencies => ["testme"]

  def foo
    puts "foo for testcustom2"
  end

  # using methods
  custom "testcustom2",
    :execute => method(:foo),
    :dependencies => ["testcustom"]

  # using new lambda syntax
  custom "testcustom3",
    :execute => -> { puts "executing testcustom3" },
    :dependencies => ["testcustom2"]

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cxxproject-0.6.29 example/custom/project.rb
cxxproject-0.6.28 example/custom/project.rb
cxxproject-0.6.27 example/custom/project.rb
cxxproject-0.6.26 example/custom/project.rb
cxxproject-0.6.25 example/custom/project.rb
cxxproject-0.6.24 example/custom/project.rb
cxxproject-0.6.23 example/custom/project.rb
cxxproject-0.6.21 example/custom/project.rb
cxxproject-0.6.18 example/custom/project.rb
cxxproject-0.6.17 example/custom/project.rb