Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
Alexander Afanasyev | 71b43e7 | 2012-12-27 01:03:43 -0800 | [diff] [blame] | 2 | VERSION='0.1' |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 3 | APPNAME='chronoshare' |
| 4 | |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 5 | from waflib import Build, Logs, Utils |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 6 | |
| 7 | def options(opt): |
| 8 | opt.add_option('--debug',action='store_true',default=False,dest='debug',help='''debugging mode''') |
| 9 | opt.add_option('--test', action='store_true',default=False,dest='_test',help='''build unit tests''') |
Alexander Afanasyev | 71b43e7 | 2012-12-27 01:03:43 -0800 | [diff] [blame] | 10 | opt.add_option('--yes',action='store_true',default=False) # for autoconf/automake/make compatibility |
Alexander Afanasyev | c507ac2 | 2013-01-21 16:01:58 -0800 | [diff] [blame] | 11 | opt.add_option('--log4cxx', action='store_true',default=False,dest='log4cxx',help='''Compile with log4cxx logging support''') |
Alexander Afanasyev | 5f9d09e | 2012-12-28 19:43:08 -0800 | [diff] [blame] | 12 | |
Alexander Afanasyev | 5a95a25 | 2013-02-25 12:55:48 -0800 | [diff] [blame] | 13 | if Utils.unversioned_sys_platform () == "darwin": |
Zhenkai Zhu | bb170d4 | 2013-02-25 13:48:59 -0800 | [diff] [blame] | 14 | opt.add_option('--auto-update', action='store_true',default=False,dest='autoupdate',help='''(OSX) Download sparkle framework and enable autoupdate feature''') |
Alexander Afanasyev | 5a95a25 | 2013-02-25 12:55:48 -0800 | [diff] [blame] | 15 | |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 16 | opt.load('compiler_c compiler_cxx boost ccnx protoc qt4') |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 17 | |
| 18 | def configure(conf): |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 19 | conf.load("compiler_c compiler_cxx") |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 20 | |
Alexander Afanasyev | f289063 | 2013-01-02 13:40:02 -0800 | [diff] [blame] | 21 | conf.define ("CHRONOSHARE_VERSION", VERSION) |
| 22 | |
Alexander Afanasyev | 71b43e7 | 2012-12-27 01:03:43 -0800 | [diff] [blame] | 23 | conf.check_cfg(package='sqlite3', args=['--cflags', '--libs'], uselib_store='SQLITE3', mandatory=True) |
Zhenkai Zhu | bc2f628 | 2013-01-08 16:40:58 -0800 | [diff] [blame] | 24 | conf.check_cfg(package='libevent', args=['--cflags', '--libs'], uselib_store='LIBEVENT', mandatory=True) |
| 25 | conf.check_cfg(package='libevent_pthreads', args=['--cflags', '--libs'], uselib_store='LIBEVENT_PTHREADS', mandatory=True) |
| 26 | |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 27 | if Utils.unversioned_sys_platform () == "darwin": |
Alexander Afanasyev | 5a95a25 | 2013-02-25 12:55:48 -0800 | [diff] [blame] | 28 | conf.check_cxx(framework_name='Foundation', uselib_store='OSX_FOUNDATION', mandatory=False, compile_filename='test.mm') |
| 29 | conf.check_cxx(framework_name='CoreWLAN', uselib_store='OSX_COREWLAN', define_name='HAVE_COREWLAN', mandatory=False, compile_filename='test.mm') |
| 30 | |
| 31 | if conf.options.autoupdate: |
Zhenkai Zhu | bb170d4 | 2013-02-25 13:48:59 -0800 | [diff] [blame] | 32 | def check_sparkle(**kwargs): |
| 33 | conf.check_cxx (framework_name='Sparkle', header_name="Foundation/Foundation.h", |
| 34 | uselib_store='OSX_SPARKLE', define_name='HAVE_SPARKLE', mandatory=True, |
| 35 | compile_filename='test.mm', |
| 36 | **kwargs |
| 37 | ) |
Alexander Afanasyev | 5a95a25 | 2013-02-25 12:55:48 -0800 | [diff] [blame] | 38 | try: |
| 39 | # Try standard paths first |
Zhenkai Zhu | bb170d4 | 2013-02-25 13:48:59 -0800 | [diff] [blame] | 40 | check_sparkle() |
Alexander Afanasyev | 5a95a25 | 2013-02-25 12:55:48 -0800 | [diff] [blame] | 41 | except: |
| 42 | try: |
| 43 | # Try local path |
| 44 | Logs.info ("Check local version of Sparkle framework") |
Zhenkai Zhu | bb170d4 | 2013-02-25 13:48:59 -0800 | [diff] [blame] | 45 | check_sparkle(cxxflags="-F%s/build/Sparkle" % conf.path.abspath(), |
| 46 | linkflags="-F%s/build/Sparkle" % conf.path.abspath()) |
Alexander Afanasyev | 5a95a25 | 2013-02-25 12:55:48 -0800 | [diff] [blame] | 47 | except: |
| 48 | # Download to local path and retry |
| 49 | Logs.info ("Sparkle framework not found, trying to download it to 'build/'") |
| 50 | |
| 51 | import urllib, subprocess, os |
| 52 | urllib.urlretrieve ("http://sparkle.andymatuschak.org/files/Sparkle%201.5b6.zip", "build/Sparkle.zip") |
Zhenkai Zhu | bb170d4 | 2013-02-25 13:48:59 -0800 | [diff] [blame] | 53 | if os.path.exists('build/Sparkle.zip'): |
| 54 | try: |
| 55 | subprocess.check_call (['unzip', '-qq', 'build/Sparkle.zip', '-d', 'build/Sparkle']) |
| 56 | os.remove ("build/Sparkle.zip") |
| 57 | check_sparkle(cxxflags="-F%s/build/Sparkle" % conf.path.abspath(), |
| 58 | linkflags="-F%s/build/Sparkle" % conf.path.abspath()) |
| 59 | except subprocess.CalledProcessError as e: |
| 60 | conf.fatal("Cannot find Sparkle framework. Auto download failed: '%s' returned %s" % (' '.join(e.cmd), e.returncode)) |
| 61 | except: |
| 62 | conf.fatal("Unknown Error happened when auto downloading Sparkle framework") |
Alexander Afanasyev | 5a95a25 | 2013-02-25 12:55:48 -0800 | [diff] [blame] | 63 | |
Alexander Afanasyev | 5a95a25 | 2013-02-25 12:55:48 -0800 | [diff] [blame] | 64 | if conf.is_defined('HAVE_SPARKLE'): |
| 65 | conf.env.HAVE_SPARKLE = 1 # small cheat for wscript |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 66 | |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 67 | if not conf.check_cfg(package='openssl', args=['--cflags', '--libs'], uselib_store='SSL', mandatory=False): |
Alexander Afanasyev | 5f9d09e | 2012-12-28 19:43:08 -0800 | [diff] [blame] | 68 | libcrypto = conf.check_cc(lib='crypto', |
| 69 | header_name='openssl/crypto.h', |
| 70 | define_name='HAVE_SSL', |
| 71 | uselib_store='SSL') |
| 72 | else: |
| 73 | conf.define ("HAVE_SSL", 1) |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 74 | if not conf.get_define ("HAVE_SSL"): |
| 75 | conf.fatal ("Cannot find SSL libraries") |
| 76 | |
Alexander Afanasyev | c507ac2 | 2013-01-21 16:01:58 -0800 | [diff] [blame] | 77 | if conf.options.log4cxx: |
| 78 | conf.check_cfg(package='liblog4cxx', args=['--cflags', '--libs'], uselib_store='LOG4CXX', mandatory=True) |
| 79 | conf.define ("HAVE_LOG4CXX", 1) |
| 80 | |
Zhenkai Zhu | 0a17aea | 2012-12-28 14:30:22 -0800 | [diff] [blame] | 81 | conf.load ('ccnx') |
Alexander Afanasyev | 3320698 | 2013-01-09 16:29:29 -0800 | [diff] [blame] | 82 | |
| 83 | conf.load('protoc') |
Alexander Afanasyev | 3320698 | 2013-01-09 16:29:29 -0800 | [diff] [blame] | 84 | |
| 85 | conf.load('qt4') |
| 86 | |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 87 | conf.load('boost') |
| 88 | |
Alexander Afanasyev | 68f2a95 | 2013-01-08 14:34:16 -0800 | [diff] [blame] | 89 | conf.check_boost(lib='system test iostreams filesystem regex thread') |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 90 | |
Alexander Afanasyev | 71b43e7 | 2012-12-27 01:03:43 -0800 | [diff] [blame] | 91 | boost_version = conf.env.BOOST_VERSION.split('_') |
| 92 | if int(boost_version[0]) < 1 or int(boost_version[1]) < 46: |
| 93 | Logs.error ("Minumum required boost version is 1.46") |
| 94 | return |
| 95 | |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 96 | conf.check_ccnx (path=conf.options.ccnx_dir) |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 97 | conf.define ('CCNX_PATH', conf.env.CCNX_ROOT) |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 98 | |
| 99 | if conf.options.debug: |
| 100 | conf.define ('_DEBUG', 1) |
Alexander Afanasyev | d724581 | 2013-02-13 21:06:57 -0800 | [diff] [blame] | 101 | conf.env.append_value('CXXFLAGS', ['-O0', '-Wall', '-Wno-unused-variable', '-g3']) |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 102 | else: |
Alexander Afanasyev | d724581 | 2013-02-13 21:06:57 -0800 | [diff] [blame] | 103 | conf.env.append_value('CXXFLAGS', ['-O3', '-g']) |
| 104 | |
| 105 | if conf.env["CXX"] == ["clang++"]: |
| 106 | conf.env.append_value('CXXFLAGS', ['-fcolor-diagnostics', '-Qunused-arguments']) |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 107 | |
| 108 | if conf.options._test: |
Alexander Afanasyev | 9e5a470 | 2013-01-24 13:15:23 -0800 | [diff] [blame] | 109 | conf.define ('_TESTS', 1) |
Alexander Afanasyev | 72ac219 | 2013-01-03 19:33:43 -0800 | [diff] [blame] | 110 | conf.env.TEST = 1 |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 111 | |
Alexander Afanasyev | 71b43e7 | 2012-12-27 01:03:43 -0800 | [diff] [blame] | 112 | conf.write_config_header('src/config.h') |
| 113 | |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 114 | def build (bld): |
Zhenkai Zhu | e840942 | 2013-01-28 12:52:17 -0800 | [diff] [blame] | 115 | executor = bld.objects ( |
| 116 | target = "executor", |
| 117 | features = ["cxx"], |
| 118 | source = bld.path.ant_glob(['executor/**/*.cc']), |
| 119 | use = 'BOOST BOOST_THREAD LIBEVENT LIBEVENT_PTHREADS LOG4CXX', |
| 120 | includes = "executor src", |
| 121 | ) |
| 122 | |
Alexander Afanasyev | 3f101ec | 2013-01-17 16:58:03 -0800 | [diff] [blame] | 123 | scheduler = bld.objects ( |
| 124 | target = "scheduler", |
Alexander Afanasyev | 68f2a95 | 2013-01-08 14:34:16 -0800 | [diff] [blame] | 125 | features = ["cxx"], |
Alexander Afanasyev | 3f101ec | 2013-01-17 16:58:03 -0800 | [diff] [blame] | 126 | source = bld.path.ant_glob(['scheduler/**/*.cc']), |
Zhenkai Zhu | e840942 | 2013-01-28 12:52:17 -0800 | [diff] [blame] | 127 | use = 'BOOST BOOST_THREAD LIBEVENT LIBEVENT_PTHREADS LOG4CXX executor', |
Zhenkai Zhu | 1888f74 | 2013-01-28 12:47:33 -0800 | [diff] [blame] | 128 | includes = "scheduler executor src", |
Alexander Afanasyev | 68f2a95 | 2013-01-08 14:34:16 -0800 | [diff] [blame] | 129 | ) |
| 130 | |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 131 | libccnx = bld ( |
Alexander Afanasyev | 3f101ec | 2013-01-17 16:58:03 -0800 | [diff] [blame] | 132 | target="ccnx", |
| 133 | features=['cxx'], |
| 134 | source = bld.path.ant_glob(['ccnx/**/*.cc', 'ccnx/**/*.cpp']), |
Zhenkai Zhu | e840942 | 2013-01-28 12:52:17 -0800 | [diff] [blame] | 135 | use = 'BOOST BOOST_THREAD SSL CCNX LOG4CXX scheduler executor', |
Zhenkai Zhu | 1888f74 | 2013-01-28 12:47:33 -0800 | [diff] [blame] | 136 | includes = "ccnx src scheduler executor", |
Alexander Afanasyev | f289063 | 2013-01-02 13:40:02 -0800 | [diff] [blame] | 137 | ) |
| 138 | |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 139 | adhoc = bld ( |
| 140 | target = "adhoc", |
| 141 | features=['cxx'], |
| 142 | includes = "ccnx src", |
| 143 | ) |
| 144 | if Utils.unversioned_sys_platform () == "darwin": |
| 145 | adhoc.mac_app = True |
| 146 | adhoc.source = 'adhoc/adhoc-osx.mm' |
Alexander Afanasyev | e33846d | 2013-02-25 15:26:08 -0800 | [diff] [blame] | 147 | adhoc.use = "LOG4CXX OSX_FOUNDATION OSX_COREWLAN" |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 148 | |
Alexander Afanasyev | 3f101ec | 2013-01-17 16:58:03 -0800 | [diff] [blame] | 149 | chornoshare = bld ( |
| 150 | target="chronoshare", |
| 151 | features=['cxx'], |
| 152 | source = bld.path.ant_glob(['src/**/*.cc', 'src/**/*.cpp', 'src/**/*.proto']), |
Alexander Afanasyev | c507ac2 | 2013-01-21 16:01:58 -0800 | [diff] [blame] | 153 | use = "BOOST BOOST_FILESYSTEM SQLITE3 LOG4CXX scheduler ccnx", |
Zhenkai Zhu | 1888f74 | 2013-01-28 12:47:33 -0800 | [diff] [blame] | 154 | includes = "ccnx scheduler src executor", |
Alexander Afanasyev | ee7e613 | 2013-01-03 20:03:14 -0800 | [diff] [blame] | 155 | ) |
Alexander Afanasyev | b2fe74e | 2013-01-20 16:06:43 -0800 | [diff] [blame] | 156 | |
Zhenkai Zhu | 369eff1 | 2013-02-05 15:43:49 -0800 | [diff] [blame] | 157 | fs_watcher = bld ( |
| 158 | target = "fs_watcher", |
| 159 | features = "qt4 cxx", |
| 160 | defines = "WAF", |
| 161 | source = bld.path.ant_glob(['fs-watcher/*.cc']), |
| 162 | use = "SQLITE3 LOG4CXX scheduler executor QTCORE", |
| 163 | includes = "fs-watcher scheduler executor src", |
| 164 | ) |
| 165 | |
Alexander Afanasyev | ee7e613 | 2013-01-03 20:03:14 -0800 | [diff] [blame] | 166 | # Unit tests |
| 167 | if bld.env['TEST']: |
| 168 | unittests = bld.program ( |
| 169 | target="unit-tests", |
Zhenkai Zhu | d175627 | 2013-02-01 17:02:18 -0800 | [diff] [blame] | 170 | features = "qt4 cxx cxxprogram", |
| 171 | defines = "WAF", |
Zhenkai Zhu | 369eff1 | 2013-02-05 15:43:49 -0800 | [diff] [blame] | 172 | source = bld.path.ant_glob(['test/*.cc']), |
| 173 | use = 'BOOST_TEST BOOST_FILESYSTEM LOG4CXX SQLITE3 QTCORE QTGUI ccnx database fs_watcher chronoshare', |
| 174 | includes = "ccnx scheduler src executor gui fs-watcher", |
Alexander Afanasyev | 4f62f44 | 2013-02-07 22:36:08 -0800 | [diff] [blame] | 175 | install_prefix = None, |
Alexander Afanasyev | ee7e613 | 2013-01-03 20:03:14 -0800 | [diff] [blame] | 176 | ) |
Alexander Afanasyev | f289063 | 2013-01-02 13:40:02 -0800 | [diff] [blame] | 177 | |
Zhenkai Zhu | a9a7e1d | 2013-02-25 18:29:07 -0800 | [diff] [blame] | 178 | http_server = bld ( |
| 179 | target = "http_server", |
Zhenkai Zhu | d942922 | 2013-02-25 22:34:09 -0800 | [diff] [blame] | 180 | features = "qt4 cxx", |
Zhenkai Zhu | a9a7e1d | 2013-02-25 18:29:07 -0800 | [diff] [blame] | 181 | source = bld.path.ant_glob(['server/*.cpp']), |
Zhenkai Zhu | d942922 | 2013-02-25 22:34:09 -0800 | [diff] [blame] | 182 | includes = "server src .", |
| 183 | use = "BOOST QTCORE" |
Zhenkai Zhu | a9a7e1d | 2013-02-25 18:29:07 -0800 | [diff] [blame] | 184 | ) |
| 185 | |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 186 | qt = bld ( |
| 187 | target = "ChronoShare", |
| 188 | features = "qt4 cxx cxxprogram", |
| 189 | defines = "WAF", |
Zhenkai Zhu | d942922 | 2013-02-25 22:34:09 -0800 | [diff] [blame] | 190 | # do not include html.qrc as we don't want it to be compiled into binary |
| 191 | # qt seems to adopt a pattern of compiling every resource file into the |
| 192 | # executable; if things don't work, we can use that as last resort |
| 193 | source = bld.path.ant_glob(['gui/*.cpp', 'gui/*.cc', 'gui/images.qrc']), |
| 194 | includes = "ccnx scheduler executor fs-watcher gui src adhoc server . ", |
Zhenkai Zhu | a9a7e1d | 2013-02-25 18:29:07 -0800 | [diff] [blame] | 195 | use = "BOOST BOOST_FILESYSTEM SQLITE3 QTCORE QTGUI LOG4CXX fs_watcher ccnx database chronoshare http_server" |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 196 | ) |
| 197 | |
| 198 | if Utils.unversioned_sys_platform () == "darwin": |
| 199 | app_plist = '''<?xml version="1.0" encoding="UTF-8"?> |
Alexander Afanasyev | 83a5300 | 2013-01-24 11:12:01 -0800 | [diff] [blame] | 200 | <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> |
| 201 | <plist version="0.9"> |
| 202 | <dict> |
| 203 | <key>CFBundlePackageType</key> |
| 204 | <string>APPL</string> |
| 205 | <key>CFBundleGetInfoString</key> |
| 206 | <string>Created by Waf</string> |
| 207 | <key>CFBundleSignature</key> |
| 208 | <string>????</string> |
| 209 | <key>NOTE</key> |
| 210 | <string>THIS IS A GENERATED FILE, DO NOT MODIFY</string> |
| 211 | <key>CFBundleExecutable</key> |
| 212 | <string>%s</string> |
| 213 | <key>LSUIElement</key> |
| 214 | <string>1</string> |
| 215 | </dict> |
| 216 | </plist>''' |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 217 | qt.mac_app = "ChronoShare.app" |
| 218 | qt.mac_plist = app_plist % "ChronoShare" |
| 219 | qt.use += " OSX_FOUNDATION OSX_COREWLAN adhoc" |
Alexander Afanasyev | 83a5300 | 2013-01-24 11:12:01 -0800 | [diff] [blame] | 220 | |
Alexander Afanasyev | 5a95a25 | 2013-02-25 12:55:48 -0800 | [diff] [blame] | 221 | if bld.env['HAVE_SPARKLE']: |
| 222 | qt.use += " OSX_SPARKLE" |
| 223 | qt.source += ["osx/auto-update/sparkle-auto-update.mm"] |
| 224 | qt.includes += " osx/auto-update" |
Alexander Afanasyev | 548d38d | 2013-01-26 16:36:06 -0800 | [diff] [blame] | 225 | |
| 226 | cmdline = bld ( |
| 227 | target = "csd", |
| 228 | features = "qt4 cxx cxxprogram", |
| 229 | defines = "WAF", |
Zhenkai Zhu | 369eff1 | 2013-02-05 15:43:49 -0800 | [diff] [blame] | 230 | source = "cmd/csd.cc", |
| 231 | includes = "ccnx scheduler executor gui fs-watcher src . ", |
| 232 | use = "BOOST BOOST_FILESYSTEM SQLITE3 QTCORE QTGUI LOG4CXX fs_watcher ccnx database chronoshare" |
Alexander Afanasyev | 548d38d | 2013-01-26 16:36:06 -0800 | [diff] [blame] | 233 | ) |
| 234 | |
Alexander Afanasyev | eb575e0 | 2013-01-26 17:14:51 -0800 | [diff] [blame] | 235 | dump_db = bld ( |
| 236 | target = "dump-db", |
| 237 | features = "cxx cxxprogram", |
| 238 | source = "cmd/dump-db.cc", |
Zhenkai Zhu | 369eff1 | 2013-02-05 15:43:49 -0800 | [diff] [blame] | 239 | includes = "ccnx scheduler executor gui fs-watcher src . ", |
| 240 | use = "BOOST BOOST_FILESYSTEM SQLITE3 QTCORE LOG4CXX fs_watcher ccnx database chronoshare" |
Alexander Afanasyev | eb575e0 | 2013-01-26 17:14:51 -0800 | [diff] [blame] | 241 | ) |
| 242 | |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 243 | from waflib import TaskGen |
| 244 | @TaskGen.extension('.mm') |
| 245 | def m_hook(self, node): |
| 246 | """Alias .mm files to be compiled the same as .cc files, gcc/clang will do the right thing.""" |
| 247 | return self.create_compiled_task('cxx', node) |