OLD | NEW |
1 #!/usr/bin/make -f | 1 #!/usr/bin/make -f |
2 export DH_VERBOSE = 1 | 2 export DH_VERBOSE = 1 |
3 | 3 |
4 # Use DEB_BUILD_OPTIONS's parallel=n option (see Policy 4.9.1) | 4 # Use DEB_BUILD_OPTIONS's parallel=n option (see Policy 4.9.1) |
5 ifneq (,$(findstring parallel,$(DEB_BUILD_OPTIONS))) | 5 ifneq (,$(findstring parallel,$(DEB_BUILD_OPTIONS))) |
6 PARALLEL_JOBS := $(shell echo $(DEB_BUILD_OPTIONS) | \ | 6 PARALLEL_JOBS := $(shell echo $(DEB_BUILD_OPTIONS) | \ |
7 sed -e 's/.*parallel=\([0-9]\+\).*/\1/') | 7 sed -e 's/.*parallel=\([0-9]\+\).*/\1/') |
8 else | 8 else |
9 PARALLEL_JOBS := 1 | 9 PARALLEL_JOBS := 1 |
10 endif | 10 endif |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 override_dh_auto_clean: | 41 override_dh_auto_clean: |
42 echo $(DEB_BUILD_OPTIONS) | 42 echo $(DEB_BUILD_OPTIONS) |
43 rm -fr dart/out dart/Makefile | 43 rm -fr dart/out dart/Makefile |
44 find . -name *.tmp -execdir rm -f {} \; | 44 find . -name *.tmp -execdir rm -f {} \; |
45 find . -name *.pyc -execdir rm -f {} \; | 45 find . -name *.pyc -execdir rm -f {} \; |
46 find . -name *.mk -execdir rm -f {} \; | 46 find . -name *.mk -execdir rm -f {} \; |
47 find . -name *.Makefile -execdir rm -f {} \; | 47 find . -name *.Makefile -execdir rm -f {} \; |
48 | 48 |
49 override_dh_auto_configure: | 49 override_dh_auto_configure: |
50 » GYP_GENERATORS=make python dart/tools/gyp_dart.py all | 50 » python dart/tools/generate_buildfiles.py |
51 | 51 |
52 override_dh_auto_build: | 52 override_dh_auto_build: |
53 cd dart; \ | 53 cd dart; \ |
54 python tools/build.py -v -m release -a $(ARCH) $(TOOLCHAIN) create_sdk;
\ | 54 python tools/build.py -v -m release -a $(ARCH) $(TOOLCHAIN) create_sdk;
\ |
55 cd .. | 55 cd .. |
56 | 56 |
57 # Building the Dart SDK will already strip all binaries. | 57 # Building the Dart SDK will already strip all binaries. |
58 override_dh_strip: | 58 override_dh_strip: |
59 | 59 |
60 # This override allows us to ignore spurious missing library errors when | 60 # This override allows us to ignore spurious missing library errors when |
61 # cross-compiling. | 61 # cross-compiling. |
62 override_dh_shlibdeps: | 62 override_dh_shlibdeps: |
63 dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info | 63 dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info |
64 | 64 |
65 override_dh_auto_install: | 65 override_dh_auto_install: |
66 mkdir -p debian/tmp/out | 66 mkdir -p debian/tmp/out |
67 cp -R dart/out/$(BUILD_TYPE)/dart-sdk debian/tmp/out | 67 cp -R dart/out/$(BUILD_TYPE)/dart-sdk debian/tmp/out |
68 mv debian/tmp/out/dart-sdk debian/tmp/out/dart | 68 mv debian/tmp/out/dart-sdk debian/tmp/out/dart |
69 dh_install | 69 dh_install |
70 dh_link | 70 dh_link |
OLD | NEW |