Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
Signed-off-by: leleliu008 <leleliu008@gmail.com>
  • Loading branch information
leleliu008 committed Jan 9, 2024
1 parent 7cb5551 commit 1157606
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ndk-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,8 @@ filetype_from_url() {
unset PACKAGE_XXFLAGS
unset PACKAGE_LDFLAGS

unset PACKAGE_INCLUDE

unset PACKAGE_ACTIONS_DO12345
unset PACKAGE_ACTIONS_DOPATCH
unset PACKAGE_ACTIONS_DOBUILD
Expand Down Expand Up @@ -1078,6 +1080,8 @@ filetype_from_url() {
PACKAGE_PPFLAGS="$(yq '.ppflags | select(. != null)' "$PACKAGE_FORMULA_FILEPATH")"
PACKAGE_LDFLAGS="$(yq '.ldflags | select(. != null)' "$PACKAGE_FORMULA_FILEPATH")"

PACKAGE_INCLUDE="$(yq '.include | select(. != null)' "$PACKAGE_FORMULA_FILEPATH")"

PACKAGE_PARALLEL="$(yq '.parallel | select(. != null)' "$PACKAGE_FORMULA_FILEPATH")"

PACKAGE_DEVELOPER="$(yq '.developer | select(. != null)' "$PACKAGE_FORMULA_FILEPATH")"
Expand Down Expand Up @@ -1780,6 +1784,7 @@ __search_packages() {
--arg xxflags "$PACKAGE_XXFLAGS" \
--arg ppflags "$PACKAGE_PPFLAGS" \
--arg ldflags "$PACKAGE_LDFLAGS" \
--arg include2 "$PACKAGE_INCLUDE" \
--arg api_min "$PACKAGE_API_MIN" \
--arg parallel $PACKAGE_BUILD_IN_PARALLEL \
--arg developer "$PACKAGE_DEVELOPER" \
Expand Down Expand Up @@ -1812,6 +1817,7 @@ __search_packages() {
"xxflags":$xxflags,
"ppflags":$ppflags,
"ldflags":$ldflags,
"include":$include2,
"api-min":$api_min,
"parallel":$parallel,
"developer":$developer,
Expand Down Expand Up @@ -1935,6 +1941,7 @@ PACKAGE_CCFLAGS
PACKAGE_XXFLAGS
PACKAGE_PPFLAGS
PACKAGE_LDFLAGS
PACKAGE_INCLUDE
PACKAGE_API_MIN
PACKAGE_FORMULA_FILEPATH
PACKAGE_DEVELOPER
Expand All @@ -1953,6 +1960,10 @@ EOF
--json)
__info_the_given_available_package_as_json "$1"
;;
include)
__load_formula_of_the_given_package "$1"
printf '%s\n' "$PACKAGE_INCLUDE"
;;
do12345)
__load_formula_of_the_given_package "$1"
printf '%s\n' "$PACKAGE_ACTIONS_DO12345"
Expand Down Expand Up @@ -6516,6 +6527,8 @@ EOF

#define wait3(status,options,rusage) waitpid(-1,status,options)

$PACKAGE_INCLUDE

#endif
EOF

Expand Down

0 comments on commit 1157606

Please sign in to comment.