mirror of
https://github.com/google/pebble.git
synced 2025-11-18 21:40:57 -05:00
Import of the watch repository from Pebble
This commit is contained in:
18
src/apps/health_api_test/appinfo.json
Normal file
18
src/apps/health_api_test/appinfo.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"uuid": "9754c10e-72d8-481f-a89b-f9cb30601c21",
|
||||
"shortName": "Health API",
|
||||
"longName": "Health API",
|
||||
"companyName": "MakeAwesomeHappen",
|
||||
"versionLabel": "1.0",
|
||||
"sdkVersion": "3",
|
||||
"targetPlatforms": ["diorite"],
|
||||
"watchapp": {
|
||||
"watchface": false
|
||||
},
|
||||
"appKeys": {
|
||||
"dummy": 0
|
||||
},
|
||||
"resources": {
|
||||
"media": []
|
||||
}
|
||||
}
|
||||
1246
src/apps/health_api_test/src/health_api_test.c
Normal file
1246
src/apps/health_api_test/src/health_api_test.c
Normal file
File diff suppressed because it is too large
Load Diff
41
src/apps/health_api_test/wscript
Normal file
41
src/apps/health_api_test/wscript
Normal file
@@ -0,0 +1,41 @@
|
||||
|
||||
#
|
||||
# This file is the default set of rules to compile a Pebble project.
|
||||
#
|
||||
# Feel free to customize this to your needs.
|
||||
#
|
||||
|
||||
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 = []
|
||||
|
||||
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.BUILD_DIR)
|
||||
ctx.pbl_program(source=ctx.path.ant_glob('src/**/*.c'),
|
||||
target=app_elf)
|
||||
|
||||
if build_worker:
|
||||
worker_elf='{}/pebble-worker.elf'.format(ctx.env.BUILD_DIR)
|
||||
binaries.append({'platform': p, 'app_elf': app_elf, 'worker_elf': worker_elf})
|
||||
ctx.pbl_worker(source=ctx.path.ant_glob('worker_src/**/*.c'),
|
||||
target=worker_elf)
|
||||
else:
|
||||
binaries.append({'platform': p, 'app_elf': app_elf})
|
||||
|
||||
ctx.set_group('bundle')
|
||||
ctx.pbl_bundle(binaries=binaries, js=ctx.path.ant_glob('src/js/**/*.js'))
|
||||
Reference in New Issue
Block a user