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 | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 2 | VERSION='1.0' |
| 3 | APPNAME='ChronoShare' |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 4 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 5 | from waflib import Logs, Utils, Task, TaskGen |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 6 | |
| 7 | def options(opt): |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 8 | opt.add_option('--with-tests', action='store_true', default=False, dest='with_tests', |
| 9 | 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 | 5f9d09e | 2012-12-28 19:43:08 -0800 | [diff] [blame] | 11 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 12 | opt.add_option('--without-sqlite-locking', action='store_false', default=True, |
| 13 | dest='with_sqlite_locking', |
| 14 | help='''Disable filesystem locking in sqlite3 database ''' |
| 15 | '''(use unix-dot locking mechanism instead). ''' |
| 16 | '''This option may be necessary if home directory is hosted on NFS.''') |
Alexander Afanasyev | 5a95a25 | 2013-02-25 12:55:48 -0800 | [diff] [blame] | 17 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 18 | if Utils.unversioned_sys_platform() == "darwin": |
| 19 | opt.add_option('--with-auto-update', action='store_true', default=False, dest='autoupdate', |
| 20 | help='''(OSX) Download sparkle framework and enable autoupdate feature''') |
| 21 | |
| 22 | opt.load(['compiler_c', 'compiler_cxx', 'gnu_dirs', 'qt5']) |
| 23 | opt.load(['default-compiler-flags', |
| 24 | 'osx-frameworks', 'boost', 'sqlite3', 'protoc', 'tinyxml', |
| 25 | 'coverage', 'sanitizers', |
| 26 | 'doxygen', 'sphinx_build'], tooldir=['.waf-tools']) |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 27 | |
| 28 | def configure(conf): |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 29 | conf.load(['compiler_c', 'compiler_cxx', 'gnu_dirs', |
| 30 | 'default-compiler-flags', |
| 31 | 'osx-frameworks', 'boost', 'sqlite3', 'protoc', 'tinyxml', |
| 32 | 'doxygen', 'sphinx_build']) |
Alexander Afanasyev | a1b7bb5 | 2013-02-26 17:04:02 -0800 | [diff] [blame] | 33 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 34 | if 'PKG_CONFIG_PATH' not in conf.environ: |
| 35 | conf.environ['PKG_CONFIG_PATH'] = Utils.subst_vars('${LIBDIR}/pkgconfig', conf.env) |
Alexander Afanasyev | f289063 | 2013-01-02 13:40:02 -0800 | [diff] [blame] | 36 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 37 | conf.check_cfg(package='libndn-cxx', args=['--cflags', '--libs'], |
| 38 | uselib_store='NDN_CXX') |
| 39 | |
| 40 | # add homebrew path, as qt5 is no longer linked |
| 41 | conf.environ['PKG_CONFIG_PATH'] += ":/usr/local/opt/qt5/lib/pkgconfig:/opt/qt5/5.8/clang_64/lib/pkgconfig" |
| 42 | conf.environ['PATH'] += ":/usr/local/opt/qt5/bin:/opt/qt5/5.8/clang_64/bin" |
| 43 | |
| 44 | conf.load('qt5') |
| 45 | |
| 46 | conf.define("CHRONOSHARE_VERSION", VERSION) |
| 47 | |
| 48 | conf.check_sqlite3(mandatory=True) |
| 49 | if not conf.options.with_sqlite_locking: |
| 50 | conf.define('DISABLE_SQLITE3_FS_LOCKING', 1) |
| 51 | |
Zhenkai Zhu | 3457ed4 | 2013-03-12 15:15:21 -0700 | [diff] [blame] | 52 | conf.check_tinyxml(path=conf.options.tinyxml_dir) |
Zhenkai Zhu | bc2f628 | 2013-01-08 16:40:58 -0800 | [diff] [blame] | 53 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 54 | conf.define("TRAY_ICON", "chronoshare-big.png") |
| 55 | if Utils.unversioned_sys_platform() == "linux": |
| 56 | conf.define("TRAY_ICON", "chronoshare-ubuntu.png") |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 57 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 58 | USED_BOOST_LIBS = ['system', 'filesystem', 'date_time', 'iostreams', |
Alexander Afanasyev | 1cf5c43 | 2017-01-13 23:22:15 -0800 | [diff] [blame] | 59 | 'regex', 'program_options', 'thread', 'log', 'log_setup'] |
Alexander Afanasyev | 3320698 | 2013-01-09 16:29:29 -0800 | [diff] [blame] | 60 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 61 | conf.env['WITH_TESTS'] = conf.options.with_tests |
| 62 | if conf.env['WITH_TESTS']: |
| 63 | USED_BOOST_LIBS += ['unit_test_framework'] |
| 64 | conf.define('HAVE_TESTS', 1) |
Alexander Afanasyev | 3320698 | 2013-01-09 16:29:29 -0800 | [diff] [blame] | 65 | |
Alexander Afanasyev | 1cf5c43 | 2017-01-13 23:22:15 -0800 | [diff] [blame] | 66 | conf.check_boost(lib=USED_BOOST_LIBS, mt=True) |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 67 | if conf.env.BOOST_VERSION_NUMBER < 105400: |
| 68 | Logs.error("Minimum required boost version is 1.54.0") |
| 69 | Logs.error("Please upgrade your distribution or install custom boost libraries" + |
| 70 | " (https://redmine.named-data.net/projects/nfd/wiki/Boost_FAQ)") |
Alexander Afanasyev | 71b43e7 | 2012-12-27 01:03:43 -0800 | [diff] [blame] | 71 | return |
| 72 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 73 | # Loading "late" to prevent tests to be compiled with profiling flags |
| 74 | conf.load('coverage') |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 75 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 76 | conf.load('sanitizers') |
Zhenkai Zhu | a7e3da7 | 2012-12-27 13:45:00 -0800 | [diff] [blame] | 77 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 78 | conf.define('SYSCONFDIR', conf.env['SYSCONFDIR']) |
Alexander Afanasyev | 71b43e7 | 2012-12-27 01:03:43 -0800 | [diff] [blame] | 79 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 80 | conf.write_config_header('core/chronoshare-config.hpp') |
Zhenkai Zhu | e840942 | 2013-01-28 12:52:17 -0800 | [diff] [blame] | 81 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 82 | def build(bld): |
Alexander Afanasyev | 360f41f | 2016-12-25 13:20:21 -0800 | [diff] [blame] | 83 | bld(name='core-objects', |
| 84 | target='core-objects', |
| 85 | features=['cxx'], |
| 86 | source=bld.path.ant_glob('core/**/*.cpp'), |
Alexander Afanasyev | 1cf5c43 | 2017-01-13 23:22:15 -0800 | [diff] [blame] | 87 | use='NDN_CXX BOOST', |
Alexander Afanasyev | 360f41f | 2016-12-25 13:20:21 -0800 | [diff] [blame] | 88 | includes='.', |
| 89 | export_includes='.') |
| 90 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 91 | # if Utils.unversioned_sys_platform() == 'darwin': |
| 92 | # bld( |
| 93 | # target='adhoc', |
| 94 | # mac_app = True, |
| 95 | # features=['cxx'], |
| 96 | # source='adhoc/adhoc-osx.mm' |
| 97 | # includes='. src', |
| 98 | # use='OSX_FOUNDATION OSX_COREWLAN', |
| 99 | # ) |
| 100 | Logs.error("Ad hoc network creation routines are temporary disabled") |
Alexander Afanasyev | 68f2a95 | 2013-01-08 14:34:16 -0800 | [diff] [blame] | 101 | |
Lijing Wang | e84adea | 2015-05-31 16:25:16 -0700 | [diff] [blame] | 102 | chornoshare = bld( |
| 103 | target="chronoshare", |
| 104 | features=['cxx'], |
| 105 | source=bld.path.ant_glob(['src/*.proto', |
| 106 | 'src/db-helper.cpp', |
| 107 | 'src/sync-*.cpp', |
Lijing Wang | 51837ad | 2016-12-25 14:43:53 -0800 | [diff] [blame^] | 108 | 'src/file-state.cpp', |
| 109 | 'src/action-log.cpp', |
Lijing Wang | e84adea | 2015-05-31 16:25:16 -0700 | [diff] [blame] | 110 | ]), |
Alexander Afanasyev | 1cf5c43 | 2017-01-13 23:22:15 -0800 | [diff] [blame] | 111 | use='core-objects adhoc BOOST NDN_CXX TINYXML SQLITE3', |
Lijing Wang | e84adea | 2015-05-31 16:25:16 -0700 | [diff] [blame] | 112 | includes="src", |
| 113 | export_includes="src", |
| 114 | ) |
| 115 | Logs.error("Most of Chronoshare source compilation is temporary disabled") |
Alexander Afanasyev | f289063 | 2013-01-02 13:40:02 -0800 | [diff] [blame] | 116 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 117 | # fs_watcher = bld( |
| 118 | # features=['qt5', 'cxx'], |
| 119 | # target='fs-watcher', |
| 120 | # defines='WAF', |
| 121 | # source=bld.path.ant_glob('fs-watcher/*.cpp'), |
| 122 | # use='chronoshare QT5CORE', |
| 123 | # includes='fs-watcher', |
| 124 | # export_includes='fs-watcher', |
| 125 | # ) |
| 126 | Logs.error("fs-watcher compilation is temporary disabled") |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 127 | |
Alexander Afanasyev | caf61b1 | 2016-12-25 14:18:52 -0800 | [diff] [blame] | 128 | http_server = bld( |
| 129 | target = "http_server", |
| 130 | features = "qt5 cxx", |
| 131 | source = bld.path.ant_glob(['server/*.cpp']), |
| 132 | includes = "server src .", |
| 133 | use = 'BOOST QT5CORE', |
| 134 | ) |
Alexander Afanasyev | b2fe74e | 2013-01-20 16:06:43 -0800 | [diff] [blame] | 135 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 136 | # qt = bld( |
| 137 | # target = "ChronoShare", |
| 138 | # features = "qt5 cxx cxxprogram html_resources", |
| 139 | # defines = "WAF", |
| 140 | # source = bld.path.ant_glob(['gui/*.cpp', 'gui/images.qrc']), |
| 141 | # includes = "fs-watcher gui src adhoc server . ", |
| 142 | # use = "fs_watcher chronoshare http_server QT5CORE QT5GUI QT5WIDGETS", |
Zhenkai Zhu | 369eff1 | 2013-02-05 15:43:49 -0800 | [diff] [blame] | 143 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 144 | # html_resources = bld.path.find_dir("gui/html").ant_glob([ |
| 145 | # '**/*.js', '**/*.png', '**/*.css', |
| 146 | # '**/*.html', '**/*.gif', '**/*.ico' |
| 147 | # ]), |
| 148 | # ) |
Alexander Afanasyev | f289063 | 2013-01-02 13:40:02 -0800 | [diff] [blame] | 149 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 150 | # if Utils.unversioned_sys_platform() == "darwin": |
| 151 | # app_plist = '''<?xml version="1.0" encoding="UTF-8"?> |
| 152 | # <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> |
| 153 | # <plist version="0.9"> |
| 154 | # <dict> |
| 155 | # <key>CFBundlePackageType</key> |
| 156 | # <string>APPL</string> |
| 157 | # <key>CFBundleIconFile</key> |
| 158 | # <string>chronoshare.icns</string> |
| 159 | # <key>CFBundleGetInfoString</key> |
| 160 | # <string>Created by Waf</string> |
| 161 | # <key>CFBundleIdentifier</key> |
| 162 | # <string>edu.ucla.cs.irl.Chronoshare</string> |
| 163 | # <key>CFBundleSignature</key> |
| 164 | # <string>????</string> |
| 165 | # <key>NOTE</key> |
| 166 | # <string>THIS IS A GENERATED FILE, DO NOT MODIFY</string> |
| 167 | # <key>CFBundleExecutable</key> |
| 168 | # <string>%s</string> |
| 169 | # <key>LSUIElement</key> |
| 170 | # <string>1</string> |
| 171 | # <key>SUPublicDSAKeyFile</key> |
| 172 | # <string>dsa_pub.pem</string> |
| 173 | # <key>CFBundleIconFile</key> |
| 174 | # <string>chronoshare.icns</string> |
| 175 | # </dict> |
| 176 | # </plist>''' |
| 177 | # qt.mac_app = "ChronoShare.app" |
| 178 | # qt.mac_plist = app_plist % "ChronoShare" |
| 179 | # qt.mac_resources = 'chronoshare.icns' |
| 180 | # qt.use += " OSX_FOUNDATION OSX_COREWLAN adhoc" |
Zhenkai Zhu | a9a7e1d | 2013-02-25 18:29:07 -0800 | [diff] [blame] | 181 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 182 | # if bld.env['HAVE_SPARKLE']: |
| 183 | # qt.use += " OSX_SPARKLE" |
| 184 | # qt.source += ["osx/auto-update/sparkle-auto-update.mm"] |
| 185 | # qt.includes += " osx/auto-update" |
| 186 | # if bld.env['HAVE_LOCAL_SPARKLE']: |
| 187 | # qt.mac_frameworks = "osx/Frameworks/Sparkle.framework" |
Alexander Afanasyev | caf48e2 | 2013-03-02 22:47:32 -0800 | [diff] [blame] | 188 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 189 | # if Utils.unversioned_sys_platform() == "linux": |
| 190 | # bld( |
| 191 | # features = "process_in", |
| 192 | # target = "ChronoShare.desktop", |
| 193 | # source = "ChronoShare.desktop.in", |
| 194 | # install_prefix = "${DATADIR}/applications", |
| 195 | # ) |
| 196 | # bld.install_files("${DATADIR}/applications", "ChronoShare.desktop") |
| 197 | # bld.install_files("${DATADIR}/ChronoShare", "gui/images/chronoshare-big.png") |
| 198 | Logs.error("ChronoShare app compilation is temporary disabled") |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 199 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 200 | # cmdline = bld( |
| 201 | # target = "csd", |
| 202 | # features = "qt5 cxx cxxprogram", |
| 203 | # defines = "WAF", |
| 204 | # source = bld.path.ant_glob(['cmd/csd.cpp']), |
| 205 | # use = "fs_watcher chronoshare http_server QT5CORE", |
| 206 | # ) |
| 207 | Logs.error("csd app compilation is temporary disabled") |
Alexander Afanasyev | 83a5300 | 2013-01-24 11:12:01 -0800 | [diff] [blame] | 208 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 209 | # dump_db = bld( |
| 210 | # target = "dump-db", |
| 211 | # features = "cxx cxxprogram", |
| 212 | # source = bld.path.ant_glob(['cmd/dump-db.cpp']), |
| 213 | # use = "fs_watcher chronoshare http_server QT5CORE", |
| 214 | # ) |
| 215 | Logs.error("dump-db app compilation is temporary disabled") |
Alexander Afanasyev | 548d38d | 2013-01-26 16:36:06 -0800 | [diff] [blame] | 216 | |
Alexander Afanasyev | 4528997 | 2016-12-24 20:23:03 -0800 | [diff] [blame] | 217 | bld.recurse('tests'); |
Alexander Afanasyev | eb575e0 | 2013-01-26 17:14:51 -0800 | [diff] [blame] | 218 | |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 219 | from waflib import TaskGen |
| 220 | @TaskGen.extension('.mm') |
| 221 | def m_hook(self, node): |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 222 | """Alias .mm files to be compiled the same as .cpp files, gcc/clang will do the right thing.""" |
Alexander Afanasyev | a98e69c | 2013-02-24 15:42:45 -0800 | [diff] [blame] | 223 | return self.create_compiled_task('cxx', node) |
Zhenkai Zhu | 6b53f93 | 2013-03-02 20:46:02 -0800 | [diff] [blame] | 224 | |
Alexander Afanasyev | 0b38ad0 | 2013-03-19 13:42:22 -0700 | [diff] [blame] | 225 | @TaskGen.extension('.js', '.png', '.css', '.html', '.gif', '.ico', '.in') |
Alexander Afanasyev | caf48e2 | 2013-03-02 22:47:32 -0800 | [diff] [blame] | 226 | def sig_hook(self, node): |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 227 | node.sig=Utils.h_file(node.abspath()) |
Zhenkai Zhu | 6b53f93 | 2013-03-02 20:46:02 -0800 | [diff] [blame] | 228 | |
Alexander Afanasyev | 0b38ad0 | 2013-03-19 13:42:22 -0700 | [diff] [blame] | 229 | @TaskGen.feature('process_in') |
| 230 | @TaskGen.after_method('process_source') |
| 231 | def create_process_in(self): |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 232 | dst = self.bld.path.find_or_declare(self.target) |
| 233 | tsk = self.create_task('process_in', self.source, dst) |
Alexander Afanasyev | 0b38ad0 | 2013-03-19 13:42:22 -0700 | [diff] [blame] | 234 | |
| 235 | class process_in(Task.Task): |
| 236 | color='PINK' |
| 237 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 238 | def run(self): |
| 239 | self.outputs[0].write(Utils.subst_vars(self.inputs[0].read(), self.env)) |
Alexander Afanasyev | 0b38ad0 | 2013-03-19 13:42:22 -0700 | [diff] [blame] | 240 | |
Alexander Afanasyev | caf48e2 | 2013-03-02 22:47:32 -0800 | [diff] [blame] | 241 | @TaskGen.feature('html_resources') |
| 242 | @TaskGen.before_method('process_source') |
| 243 | def create_qrc_task(self): |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 244 | output = self.bld.path.find_or_declare("gui/html.qrc") |
Alexander Afanasyev | caf48e2 | 2013-03-02 22:47:32 -0800 | [diff] [blame] | 245 | tsk = self.create_task('html_resources', self.html_resources, output) |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 246 | tsk.base_path = output.parent.get_src() |
| 247 | self.create_rcc_task(output.get_src()) |
Alexander Afanasyev | caf48e2 | 2013-03-02 22:47:32 -0800 | [diff] [blame] | 248 | |
| 249 | class html_resources(Task.Task): |
| 250 | color='PINK' |
| 251 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 252 | def __str__(self): |
| 253 | return "%s: Generating %s\n" % (self.__class__.__name__.replace('_task',''), self.outputs[0].path_from(self.outputs[0].ctx.launch_node())) |
Alexander Afanasyev | caf48e2 | 2013-03-02 22:47:32 -0800 | [diff] [blame] | 254 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 255 | def run(self): |
Alexander Afanasyev | caf48e2 | 2013-03-02 22:47:32 -0800 | [diff] [blame] | 256 | out = self.outputs[0] |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 257 | bld_out = out.get_bld() |
| 258 | src_out = out.get_src() |
Alexander Afanasyev | 9cc6c21 | 2013-03-04 12:45:38 -0800 | [diff] [blame] | 259 | bld_out.write('<RCC>\n <qresource prefix="/">\n') |
Alexander Afanasyev | caf48e2 | 2013-03-02 22:47:32 -0800 | [diff] [blame] | 260 | for f in self.inputs: |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 261 | bld_out.write(' <file>%s</file>\n' % f.path_from(self.base_path), 'a') |
Alexander Afanasyev | 9cc6c21 | 2013-03-04 12:45:38 -0800 | [diff] [blame] | 262 | bld_out.write(' </qresource>\n</RCC>', 'a') |
Alexander Afanasyev | 1cb641f | 2013-03-03 17:49:02 -0800 | [diff] [blame] | 263 | |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 264 | src_out.write(bld_out.read(), 'w') |
Alexander Afanasyev | caf48e2 | 2013-03-02 22:47:32 -0800 | [diff] [blame] | 265 | return 0 |