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