forked from pipelka/xvdr-addon-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
48 lines (32 loc) · 1.1 KB
/
Makefile.in
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
42
43
44
45
46
47
48
NDKROOT=@use_ndk@
SDKROOT=@use_sdk@
# build all
debug: local.properties addon-data build-ndk
ant debug
release: local.properties ant.properties addon-data build-ndk
ant release
build-ndk: addon-sources
$(NDKROOT)/ndk-build NDK_DEBUG=0
# install
install: local.properties addon-data
ant debug install
# create project properties
local.properties:
$(SDKROOT)/tools/android update project -p .
# addon data
addon-data: assets/addons/xvdr.zip
addon-data-clean:
-rm -Rf assets/addons/pvr.vdr.xvdr
assets/addons/pvr.vdr.xvdr/addon.xml: addon.xml
-mkdir -p assets/addons/pvr.vdr.xvdr
cp addon.xml assets/addons/pvr.vdr.xvdr
assets/addons/xvdr.zip: addon-sources addon-data-clean assets/addons/pvr.vdr.xvdr/addon.xml addon/addons/pvr.vdr.xvdr/icon.png
-rm -f assets/addons/xvdr.zip
cp -Rf addon/addons/pvr.vdr.xvdr/resources assets/addons/pvr.vdr.xvdr
cp -Rf addon/addons/pvr.vdr.xvdr/icon.png assets/addons/pvr.vdr.xvdr/icon.png
cd assets/addons && zip -r xvdr.zip pvr.vdr.xvdr --exclude \*.in
make addon-data-clean
# addon sources
addon-sources: addon/README
addon/README:
git submodule update --init