FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pebble-controller/wscript at master · andars/pebble-controller · GitHub
andars
pebble-controller
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pebble-controller
/
wscript
Copy path
More file actions
More file actions
Latest commit
History
History
History
41 lines (31 loc) · 1.09 KB
Breadcrumbs
pebble-controller
/
wscript
Copy path
File metadata and controls
41 lines (31 loc) · 1.09 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
31
32
33
34
35
36
37
38
39
40
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'
))
Back
|
FazBrowse Home
|
New Git URL