| 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 # NOTE: In this file the coments try to use the name "host" for what | 4 # NOTE: In this file the coments try to use the name "host" for what |
| 5 # we are building for and "build" for what we are building on. See: | 5 # we are building for and "build" for what we are building on. See: |
| 6 # https://wiki.debian.org/CrossBuildPackagingGuidelines | 6 # https://wiki.debian.org/CrossBuildPackagingGuidelines |
| 7 | 7 |
| 8 # Right now this is hardcoded to cross-complie for ARM and use the x64 build | 8 # Right now this is hardcoded to cross-complie for ARM and use the x64 build |
| 9 # to generate sanpshots | 9 # to generate sanpshots |
| 10 BUILD_TYPE += ReleaseX64 | 10 BUILD_TYPE += ReleaseX64 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 cd .. | 35 cd .. |
| 36 | 36 |
| 37 # This will build Dartino for the build machine and cross-build Dartino | 37 # This will build Dartino for the build machine and cross-build Dartino |
| 38 # for the host machine. It will then build the dartino-agent snapshot | 38 # for the host machine. It will then build the dartino-agent snapshot |
| 39 # on the build machine and place it in the build directory for the | 39 # on the build machine and place it in the build directory for the |
| 40 # host machine. | 40 # host machine. |
| 41 override_dh_auto_build: | 41 override_dh_auto_build: |
| 42 cd sdk; \ | 42 cd sdk; \ |
| 43 ninja -C out/$(BUILD_TYPE); \ | 43 ninja -C out/$(BUILD_TYPE); \ |
| 44 ninja -C out/$(XBUILD_TYPE); \ | 44 ninja -C out/$(XBUILD_TYPE); \ |
| 45 » out/$(BUILD_TYPE)/dart -c --packages=.packages -Dsnapshot=out/$(XBUILD_T
YPE)/fletch-agent.snapshot -Dpackages=.packages tests/fletchc/run.dart pkg/fletc
h_agent/bin/agent.dart; \ | 45 » out/$(BUILD_TYPE)/dart -c --packages=.packages -Dsnapshot=out/$(XBUILD_T
YPE)/dartino-agent.snapshot -Dpackages=.packages tests/dartino_compiler/run.dart
pkg/dartino_agent/bin/agent.dart; \ |
| 46 cd .. | 46 cd .. |
| 47 | 47 |
| 48 # TODO(sgjesse): Make sure the executables are stripped. | 48 # TODO(sgjesse): Make sure the executables are stripped. |
| 49 override_dh_strip: | 49 override_dh_strip: |
| 50 | 50 |
| 51 override_dh_shlibdeps: | 51 override_dh_shlibdeps: |
| 52 dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info | 52 dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info |
| 53 | 53 |
| 54 # NOTE that the script tools/create_tarball.py adds additional files | 54 # NOTE that the script tools/create_tarball.py adds additional files |
| 55 # to tools/linux_dist_support/debian directory to define the | 55 # to tools/linux_dist_support/debian directory to define the |
| 56 # dartino-agent service as part of the Debian package as well. | 56 # dartino-agent service as part of the Debian package as well. |
| 57 override_dh_auto_install: | 57 override_dh_auto_install: |
| 58 mkdir -p $(TMP_OUT)/bin | 58 mkdir -p $(TMP_OUT)/bin |
| 59 » cp -R sdk/out/$(XBUILD_TYPE)/fletch-vm $(TMP_OUT)/bin | 59 » cp -R sdk/out/$(XBUILD_TYPE)/dartino-vm $(TMP_OUT)/bin |
| 60 » cp -R sdk/out/$(XBUILD_TYPE)/fletch-agent.snapshot $(TMP_OUT)/bin | 60 » cp -R sdk/out/$(XBUILD_TYPE)/dartino-agent.snapshot $(TMP_OUT)/bin |
| 61 mkdir -p $(TMP_OUT)/avahi | 61 mkdir -p $(TMP_OUT)/avahi |
| 62 cp sdk/platforms/raspberry-pi2/data/dartino-agent.service $(TMP_OUT)/ava
hi | 62 cp sdk/platforms/raspberry-pi2/data/dartino-agent.service $(TMP_OUT)/ava
hi |
| 63 dh_install | 63 dh_install |
| 64 dh_link | 64 dh_link |
| OLD | NEW |