-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwscript
More file actions
27 lines (21 loc) · 664 Bytes
/
Copy pathwscript
File metadata and controls
27 lines (21 loc) · 664 Bytes
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
top = '.'
out = 'build'
def options(ctx):
ctx.load('pebble_sdk')
def configure(ctx):
ctx.load('pebble_sdk')
def build(ctx):
ctx.load('pebble_sdk')
build_worker = os.path.exists('worker_src')
binaries = []
for p in ctx.env.TARGET_PLATFORMS:
ctx.set_env(ctx.all_envs[p])
ctx.set_group(ctx.env.PLATFORM_NAME)
app_elf = '{}/pebble-app.elf'.format(ctx.env.PLATFORM_NAME)
ctx.pebble_app(
source=ctx.path.ant_glob('src/**/*.c'),
target=app_elf,
)
binaries.append({'platform': p, 'app_elf': app_elf})
ctx.set_group('bundle')
ctx.pebble_bundle(binaries=binaries)