Skip to content

Commit 75394d8

Browse files
author
az
committed
update readme
1 parent f84ef19 commit 75394d8

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
11
# simple-build-ios-and-android-script
2-
Simple build iOS and Android script on MacOS.
2+
Build iOS and Android C&&C++ library cross compile shell script on MacOS.
3+
## Use build script
4+
- ios.sh is main build script on iOS platform.
5+
- android.sh is main build script on Android platform.
6+
- Other scripts do not need to be used directly.
7+
## Support library list
8+
- Only items in the list are supported to be built.
9+
- See the currently supported build items in _common.sh (${COMMON_LIBRARY_NAME_LIST}).
10+
## Add subscript considerations
11+
### The project architecture supports extended subscripts.
12+
### The specific parameters involved in adding the subscript are as follows:
13+
- COMMON_LIBRARY_ID_LIST
14+
- COMMON_LIBRARY_NAME_LIST
15+
- COMMON_LIBRARY_VERSION_LIST
16+
- COMMON_LIBRARY_URL_LIST
17+
- common_get_library_id_from_name
18+
### The following rules apply to adding subscripts:
19+
- Implement the following methods:
20+
1. ${COMMON_PLATFORM_TYPE}_${COMMON_LIBRARY_NAME}_printf_variable : (optional)
21+
2. ${COMMON_PLATFORM_TYPE}_${COMMON_LIBRARY_NAME}_pre_tool_check : (must)
22+
3. ${COMMON_PLATFORM_TYPE}_${COMMON_LIBRARY_NAME}_pre_download_zip : (must)
23+
4. ${COMMON_PLATFORM_TYPE}_${COMMON_LIBRARY_NAME}_build_unzip : (must)
24+
5. ${COMMON_PLATFORM_TYPE}_${COMMON_LIBRARY_NAME}_build_config_make : (must)
25+
6. ${COMMON_PLATFORM_TYPE}_${COMMON_LIBRARY_NAME}_archive : (must)
26+
- Please follow the naming conventions and rules.
27+
1. Use the keyword function for the method.
28+
2. Use the keyword local for local variable.
29+
3. Use common_ prefix in _common.sh script.
30+
4. Use ios_ prefix in ios-*.sh script.
31+
5. Use android_ prefix in android-*.sh script.
32+
6. Use util_ prefix in __util.sh script.
33+
7. Use ${COMMON_LIBRARY_NAME}_ prefix in subscript.
34+
## Contributor
35+
- asteriskzuo, zuoyuhsywn@hotmail.com

0 commit comments

Comments
 (0)