Something went wrong. Try again.
Pebble watchapp client for beeminder.com with zeno polling apps.repebble.com/beehave_f1152802609442c08cb60daf
pebble beeminder
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152## Pebble wscript build configuration#import os.path
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 = [] app_defines = [] if os.environ.get('BEEHAVE_UI_FIXTURES') == '1': app_defines.append('BEEHAVE_UI_FIXTURES')
cached_env = ctx.env for platform in ctx.env.TARGET_PLATFORMS: ctx.env = ctx.all_envs[platform] ctx.set_group(ctx.env.PLATFORM_NAME) app_elf = '{}/pebble-app.elf'.format(ctx.env.BUILD_DIR) ctx.pbl_build(source=ctx.path.ant_glob('src/c/**/*.c'), target=app_elf, bin_type='app', defines=app_defines)
if build_worker: worker_elf = '{}/pebble-worker.elf'.format(ctx.env.BUILD_DIR) binaries.append({'platform': platform, 'app_elf': app_elf, 'worker_elf': worker_elf}) ctx.pbl_build(source=ctx.path.ant_glob('worker_src/c/**/*.c'), target=worker_elf, bin_type='worker') else: binaries.append({'platform': platform, 'app_elf': app_elf}) ctx.env = cached_env
ctx.set_group('bundle') ctx.pbl_bundle(binaries=binaries, js=ctx.path.ant_glob(['src/pkjs/**/*.js', 'src/pkjs/**/*.json', 'src/common/**/*.js'], excl=['src/pkjs/**/*.test.js']), js_entry_file='src/pkjs/index.js')