29 lines
871 B
Diff
29 lines
871 B
Diff
--- configure-ng.py.orig 2017-06-30 10:44:36.000000000 +0200
|
|
+++ configure-ng.py 2017-12-17 08:32:58.252070075 +0100
|
|
@@ -1581,6 +1581,8 @@
|
|
|
|
pro_lines.extend(pro_sources(sp_src_dir))
|
|
|
|
+ pro_lines.append('include(../application.inc)')
|
|
+
|
|
pro_name = os.path.join(src_dir, src_dir + '.pro')
|
|
|
|
pro = open_for_writing(pro_name)
|
|
@@ -2069,12 +2071,16 @@
|
|
name_pro = name + '.pro'
|
|
name_makefile = name + '.mk'
|
|
name_source = name + '.cpp'
|
|
+ name_inc = name + '.inc'
|
|
|
|
# Create the .pro file.
|
|
pro_lines = []
|
|
pro_add_qt_dependencies(target_config, metadata, pro_lines)
|
|
pro_lines.append('TARGET = %s' % name)
|
|
pro_lines.append('SOURCES = %s' % name_source)
|
|
+
|
|
+ if (os.path.isfile(name_inc)):
|
|
+ pro_lines.append('include(%s)' % name_inc)
|
|
|
|
f = open_for_writing(name_pro)
|
|
f.write('\n'.join(pro_lines))
|