gnbuild 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. gnbuild-0.1.0/LICENSE +21 -0
  2. gnbuild-0.1.0/MANIFEST.in +14 -0
  3. gnbuild-0.1.0/PKG-INFO +661 -0
  4. gnbuild-0.1.0/README.md +651 -0
  5. gnbuild-0.1.0/demo/arm_fw/BUILD.gn +13 -0
  6. gnbuild-0.1.0/demo/arm_fw/fw.c +3 -0
  7. gnbuild-0.1.0/demo/arm_fw/gnbdeps.json +9 -0
  8. gnbuild-0.1.0/demo/arm_fw/packages/mylib/gnbpkg.json +11 -0
  9. gnbuild-0.1.0/demo/arm_fw/profiles/clang.gni +5 -0
  10. gnbuild-0.1.0/demo/arm_fw/third_party/mylib/CMakeLists.txt +4 -0
  11. gnbuild-0.1.0/demo/arm_fw/third_party/mylib/a.c +1 -0
  12. gnbuild-0.1.0/demo/arm_fw/third_party/mylib/include/mylib.h +6 -0
  13. gnbuild-0.1.0/demo/arm_fw/toolchains/arm/BUILD.gn +9 -0
  14. gnbuild-0.1.0/demo/arm_fw/toolchains/arm/toolchain.gni +7 -0
  15. gnbuild-0.1.0/demo/hello/BUILD.gn +3 -0
  16. gnbuild-0.1.0/demo/hello/main.c +6 -0
  17. gnbuild-0.1.0/demo/hello/profiles/size.gni +1 -0
  18. gnbuild-0.1.0/demo/host_app/BUILD.gn +7 -0
  19. gnbuild-0.1.0/demo/host_app/gnbdeps.json +9 -0
  20. gnbuild-0.1.0/demo/host_app/main.c +9 -0
  21. gnbuild-0.1.0/demo/host_app/packages/mylib/gnbpkg.json +11 -0
  22. gnbuild-0.1.0/demo/host_app/third_party/mylib/CMakeLists.txt +11 -0
  23. gnbuild-0.1.0/demo/host_app/third_party/mylib/a.c +1 -0
  24. gnbuild-0.1.0/demo/host_app/third_party/mylib/b.c +1 -0
  25. gnbuild-0.1.0/demo/host_app/third_party/mylib/include/mylib.h +7 -0
  26. gnbuild-0.1.0/demo/host_app/third_party/mylib/mylib_version.h.in +1 -0
  27. gnbuild-0.1.0/demo/lvgl_sdl/BUILD.gn +8 -0
  28. gnbuild-0.1.0/demo/lvgl_sdl/gnbdeps.json +19 -0
  29. gnbuild-0.1.0/demo/lvgl_sdl/lv_conf.h +11 -0
  30. gnbuild-0.1.0/demo/lvgl_sdl/main.c +64 -0
  31. gnbuild-0.1.0/demo/lvgl_sdl/packages/lvgl/gnbpkg.json +17 -0
  32. gnbuild-0.1.0/demo/pkg_app/BUILD.gn +7 -0
  33. gnbuild-0.1.0/demo/pkg_app/gnbdeps.json +9 -0
  34. gnbuild-0.1.0/demo/pkg_app/main.c +8 -0
  35. gnbuild-0.1.0/demo/pkg_app/packages/gnlib/BUILD.gn +14 -0
  36. gnbuild-0.1.0/demo/pkg_app/packages/gnlib/gnbpkg.json +15 -0
  37. gnbuild-0.1.0/demo/pkg_app/packages/multi/gnbpkg.json +11 -0
  38. gnbuild-0.1.0/demo/pkg_app/third_party/gnlib/gnlib.c +7 -0
  39. gnbuild-0.1.0/demo/pkg_app/third_party/gnlib/include/gnlib.h +1 -0
  40. gnbuild-0.1.0/demo/pkg_app/third_party/multi/CMakeLists.txt +6 -0
  41. gnbuild-0.1.0/demo/pkg_app/third_party/multi/a.c +1 -0
  42. gnbuild-0.1.0/demo/pkg_app/third_party/multi/b.c +1 -0
  43. gnbuild-0.1.0/demo/pkg_app/third_party/multi/include/multi.h +2 -0
  44. gnbuild-0.1.0/gnb +7 -0
  45. gnbuild-0.1.0/gnbuild/__init__.py +1 -0
  46. gnbuild-0.1.0/gnbuild/build/__init__.py +1 -0
  47. gnbuild-0.1.0/gnbuild/build/cmake.py +562 -0
  48. gnbuild-0.1.0/gnbuild/build/compdb.py +35 -0
  49. gnbuild-0.1.0/gnbuild/build/postgen.py +477 -0
  50. gnbuild-0.1.0/gnbuild/cli.py +213 -0
  51. gnbuild-0.1.0/gnbuild/gn/BUILD.gn +14 -0
  52. gnbuild-0.1.0/gnbuild/gn/BUILDCONFIG.gn +117 -0
  53. gnbuild-0.1.0/gnbuild/gn/build/cmake.gni +197 -0
  54. gnbuild-0.1.0/gnbuild/gn/profiles/debug.gni +1 -0
  55. gnbuild-0.1.0/gnbuild/gn/profiles/release.gni +1 -0
  56. gnbuild-0.1.0/gnbuild/gn/toolchain.gni +77 -0
  57. gnbuild-0.1.0/gnbuild/gn/toolchains/BUILD.gn +9 -0
  58. gnbuild-0.1.0/gnbuild/gn/toolchains/clang.gni +7 -0
  59. gnbuild-0.1.0/gnbuild/gn/toolchains/emscripten.gni +7 -0
  60. gnbuild-0.1.0/gnbuild/gn/toolchains/gcc.gni +7 -0
  61. gnbuild-0.1.0/gnbuild/gn/toolchains/host.gni +7 -0
  62. gnbuild-0.1.0/gnbuild/launcher.py +9 -0
  63. gnbuild-0.1.0/gnbuild/package/__init__.py +1 -0
  64. gnbuild-0.1.0/gnbuild/package/deps.py +145 -0
  65. gnbuild-0.1.0/gnbuild/package/desc.py +271 -0
  66. gnbuild-0.1.0/gnbuild/package/fetch.py +459 -0
  67. gnbuild-0.1.0/gnbuild/package/gen.py +323 -0
  68. gnbuild-0.1.0/gnbuild/package/pkgs.py +100 -0
  69. gnbuild-0.1.0/gnbuild/package/repos.py +189 -0
  70. gnbuild-0.1.0/gnbuild/project.py +84 -0
  71. gnbuild-0.1.0/gnbuild/util.py +77 -0
  72. gnbuild-0.1.0/gnbuild.egg-info/PKG-INFO +661 -0
  73. gnbuild-0.1.0/gnbuild.egg-info/SOURCES.txt +117 -0
  74. gnbuild-0.1.0/gnbuild.egg-info/dependency_links.txt +1 -0
  75. gnbuild-0.1.0/gnbuild.egg-info/top_level.txt +1 -0
  76. gnbuild-0.1.0/pyproject.toml +35 -0
  77. gnbuild-0.1.0/setup.cfg +4 -0
  78. gnbuild-0.1.0/tests/__init__.py +0 -0
  79. gnbuild-0.1.0/tests/acceptance/__init__.py +0 -0
  80. gnbuild-0.1.0/tests/acceptance/test_lvgl.py +131 -0
  81. gnbuild-0.1.0/tests/acquisition_helpers.py +35 -0
  82. gnbuild-0.1.0/tests/conftest.py +27 -0
  83. gnbuild-0.1.0/tests/helpers.py +148 -0
  84. gnbuild-0.1.0/tests/integration/__init__.py +0 -0
  85. gnbuild-0.1.0/tests/integration/conftest.py +88 -0
  86. gnbuild-0.1.0/tests/integration/test_archive_tools.py +102 -0
  87. gnbuild-0.1.0/tests/integration/test_build.py +102 -0
  88. gnbuild-0.1.0/tests/integration/test_cache_lifecycle.py +168 -0
  89. gnbuild-0.1.0/tests/integration/test_cli.py +152 -0
  90. gnbuild-0.1.0/tests/integration/test_cmake_build.py +277 -0
  91. gnbuild-0.1.0/tests/integration/test_cmake_configuration.py +202 -0
  92. gnbuild-0.1.0/tests/integration/test_cmake_exports.py +462 -0
  93. gnbuild-0.1.0/tests/integration/test_cmake_interfaces.py +183 -0
  94. gnbuild-0.1.0/tests/integration/test_compdb.py +84 -0
  95. gnbuild-0.1.0/tests/integration/test_compiler_cache.py +159 -0
  96. gnbuild-0.1.0/tests/integration/test_cross.py +101 -0
  97. gnbuild-0.1.0/tests/integration/test_distribution.py +63 -0
  98. gnbuild-0.1.0/tests/integration/test_emscripten.py +198 -0
  99. gnbuild-0.1.0/tests/integration/test_fetch.py +529 -0
  100. gnbuild-0.1.0/tests/integration/test_generation.py +348 -0
  101. gnbuild-0.1.0/tests/integration/test_git_sources.py +87 -0
  102. gnbuild-0.1.0/tests/integration/test_gn_packages.py +279 -0
  103. gnbuild-0.1.0/tests/integration/test_package_config.py +224 -0
  104. gnbuild-0.1.0/tests/integration/test_package_links.py +305 -0
  105. gnbuild-0.1.0/tests/integration/test_package_selection.py +339 -0
  106. gnbuild-0.1.0/tests/integration/test_package_toolchains.py +152 -0
  107. gnbuild-0.1.0/tests/integration/test_package_tools.py +161 -0
  108. gnbuild-0.1.0/tests/integration/test_repos.py +244 -0
  109. gnbuild-0.1.0/tests/integration/test_toolchains.py +157 -0
  110. gnbuild-0.1.0/tests/package_helpers.py +124 -0
  111. gnbuild-0.1.0/tests/unit/__init__.py +0 -0
  112. gnbuild-0.1.0/tests/unit/test_archives.py +49 -0
  113. gnbuild-0.1.0/tests/unit/test_cmake_validation.py +54 -0
  114. gnbuild-0.1.0/tests/unit/test_deps.py +142 -0
  115. gnbuild-0.1.0/tests/unit/test_desc.py +290 -0
  116. gnbuild-0.1.0/tests/unit/test_ninja.py +32 -0
  117. gnbuild-0.1.0/tests/unit/test_package_validation.py +13 -0
  118. gnbuild-0.1.0/tests/unit/test_project.py +121 -0
  119. gnbuild-0.1.0/tests/unit/test_repo_urls.py +53 -0
gnbuild-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 gnb contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,14 @@
1
+ graft tests
2
+ graft demo
3
+ prune docs
4
+ prune .git
5
+ prune .venv
6
+ prune .superpowers
7
+ prune build
8
+ prune dist
9
+ prune **/output
10
+ prune **/out
11
+ prune **/.cache
12
+ prune **/__pycache__
13
+ prune **/.pytest_cache
14
+ global-exclude *.pyc *.pyo