You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
3.1 KiB

1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
  1. # Copyright (c) 2019, The Wownero Project
  2. #
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms, with or without modification, are
  6. # permitted provided that the following conditions are met:
  7. #
  8. # 1. Redistributions of source code must retain the above copyright notice, this list of
  9. # conditions and the following disclaimer.
  10. #
  11. # 2. Redistributions in binary form must reproduce the above copyright notice, this list
  12. # of conditions and the following disclaimer in the documentation and/or other
  13. # materials provided with the distribution.
  14. #
  15. # 3. Neither the name of the copyright holder nor the names of its contributors may be
  16. # used to endorse or promote products derived from this software without specific
  17. # prior written permission.
  18. #
  19. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
  20. # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  21. # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
  22. # THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  24. # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  25. # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  26. # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  27. # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  28. .PHONY: toolchain clean
  29. clean:
  30. -rm -f ./cyberwow/android/app/src/main/jniLibs/arm64-v8a/*.so
  31. cd cyberwow && \
  32. flutter clean
  33. watch:
  34. find cyberwow/lib/ -name '*.dart' | \
  35. entr kill -USR1 `cat /tmp/flutter.pid`
  36. watch-build:
  37. find cyberwow/lib/ -name '*.dart' | \
  38. entr $(MAKE) build-debug
  39. run:
  40. cd cyberwow && \
  41. flutter run --debug --pid-file /tmp/flutter.pid
  42. run-release:
  43. cd cyberwow && \
  44. flutter run --release --pid-file /tmp/flutter.pid
  45. build:
  46. cd cyberwow && \
  47. flutter build apk --target-platform android-arm64
  48. build-bundle:
  49. cd cyberwow && \
  50. flutter build appbundle --target-platform android-arm64
  51. build-debug:
  52. cd cyberwow && \
  53. flutter build appbundle --debug --target-platform android-arm64
  54. install: build
  55. cd cyberwow && \
  56. flutter install
  57. # build wownero android binary
  58. script := etc/scripts/build-external-libs
  59. wow: clean-external-libs collect-wownero build
  60. clean-external-libs:
  61. $(script)/clean.sh
  62. toolchain:
  63. $(script)/toolchain/import.sh
  64. iconv: toolchain
  65. $(script)/iconv/fetch.sh
  66. $(script)/iconv/build.sh
  67. boost: iconv
  68. $(script)/boost/fetch.sh
  69. $(script)/boost/build.sh
  70. openssl: toolchain
  71. $(script)/openssl/fetch.sh
  72. $(script)/openssl/build.sh
  73. sodium: toolchain
  74. $(script)/sodium/fetch.sh
  75. $(script)/sodium/build.sh
  76. toolchain-wow:
  77. $(script)/toolchain-wow/import.sh
  78. $(script)/toolchain-wow/patch.sh
  79. wownero: openssl boost sodium toolchain-wow
  80. $(script)/wownero/fetch.sh
  81. $(script)/wownero/build.sh
  82. collect-wownero: wownero
  83. $(script)/collect.sh
  84. # etc
  85. remove-exif:
  86. exiftool -all= `find fastlane/ -name '*.jp*g' -o -name '*.png'`