Lines 151-163
Link Here
|
151 |
|
151 |
|
152 |
debug = ARGUMENTS.get('debug', 0) |
152 |
debug = ARGUMENTS.get('debug', 0) |
153 |
if int(debug): |
153 |
if int(debug): |
154 |
env.Append(CXXFLAGS = '-g') |
154 |
env.Append(CXXFLAGS = '-g -D_DEBUG') |
155 |
|
155 |
|
156 |
release = ARGUMENTS.get('release', 0) |
156 |
release = ARGUMENTS.get('release', 0) |
157 |
if int(release): |
157 |
if int(release): |
158 |
env.Append(CXXFLAGS = '-O3') |
158 |
env.Append(CXXFLAGS = '-O3') |
159 |
|
159 |
|
|
|
160 |
prefix = ARGUMENTS.get('PREFIX','/usr') |
161 |
root = ARGUMENTS.get('FAKE_ROOT','/') |
162 |
|
163 |
print '_PREFIX = ' + prefix |
164 |
print 'FAKE_ROOT = ' + root |
165 |
if str(prefix): |
166 |
env.Append(CXXFLAGS = '-D_PREFIX=\'\"' + prefix + '\"\'') |
167 |
|
160 |
objs = [] |
168 |
objs = [] |
161 |
objs.append(SConscript('client/SConstruct', exports='env', build_dir='build/client', duplicate=0)) |
169 |
objs.append(SConscript('client/SConstruct', exports='env', build_dir='build/client', duplicate=0)) |
162 |
objs.append(SConscript('linux/SConstruct', exports='env', build_dir='build/gui', duplicate=0)) |
170 |
objs.append(SConscript('linux/SConstruct', exports='env', build_dir='build/gui', duplicate=0)) |
163 |
Default(env.Program('dcpp', objs)) |
171 |
Default(env.Program('dcpp', objs)) |
|
|
172 |
SourceSignatures('timestamp') |
173 |
|
174 |
glade_files=['glade/favoritehubs.glade','glade/hash.glade', |
175 |
'glade/mainwindow.glade','glade/publichubs.glade', |
176 |
'glade/settingsdialog.glade','glade/downloadqueue.glade', |
177 |
'glade/finishedtransfers.glade','glade/hub.glade', |
178 |
'glade/privatemessage.glade','glade/search.glade', |
179 |
'glade/sharebrowser.glade'] |
180 |
pixmap_files=['pixmaps/dc++-fw.png','pixmaps/dc++.png', |
181 |
'pixmaps/favhubs.png','pixmaps/FinishedUL.png', |
182 |
'pixmaps/normal-fw.png','pixmaps/normal.png', |
183 |
'pixmaps/queue.png','pixmaps/settings.png', |
184 |
'pixmaps/dc++-fw-op.png','pixmaps/dc++-op.png', |
185 |
'pixmaps/download.png','pixmaps/FinishedDL.png', |
186 |
'pixmaps/normal-fw-op.png','pixmaps/normal-op.png', |
187 |
'pixmaps/publichubs.png','pixmaps/search.png', |
188 |
'pixmaps/upload.png'] |
189 |
|
190 |
text_files=['Changelog.txt','Credits.txt','License.txt','Readme.txt'] |
191 |
|
192 |
ins=Environment(ENV=os.environ) |
193 |
ins.Install(dir = root + prefix + '/lib/dcpp/glade', source = glade_files) |
194 |
ins.Install(dir = root + prefix + '/lib/dcpp/pixmaps', source = pixmap_files) |
195 |
ins.Install(dir = root + prefix + '/share/doc/dcpp', source = text_files) |
196 |
ins.Install(dir = root + prefix + '/bin', source = 'dcpp') |
197 |
|
198 |
ins.Alias('install',[root + prefix + '/lib/dcpp/glade', |
199 |
root + prefix + '/lib/dcpp/pixmaps', |
200 |
root + prefix + '/share/doc/dcpp', |
201 |
root + prefix + '/bin']) |