blob: 2e8ef47005a7777ce5cc74d91fcb752c9a70c1ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
Import('env')
bb10_lib = [
'bbutil.c',
'os_bb10.cpp',
'audio_driver_bb10.cpp',
'godot_bb10.cpp',
'payment_service.cpp',
]
env_bps = env.Clone()
if env['bb10_payment_service'] == "yes":
env_bps.Append(CPPFLAGS=['-DPAYMENT_SERVICE_ENABLED'])
if env['bb10_lgles_override'] == "yes":
env_bps.Append(CPPFLAGS=['-DBB10_LGLES_OVERRIDE'])
prog = None
if env["target"]=="release":
prog = env_bps.Program('#platform/bb10/godot_bb10_opt', bb10_lib)
else:
prog = env_bps.Program('#platform/bb10/godot_bb10', bb10_lib)
import os
fname = os.path.basename(str(prog[0]))
env.Command('#bin/'+fname, prog, Copy('bin/'+fname, prog[0]))
|