Try fix icu4c windows (#492)
* separate launcher * improve icu4c * fix build of icu4c under Windows * crlf? * icu4c: fix patch * icu4c: fix patch * icu4c: fix patch Co-authored-by: xq114 <1140735506@qq.com>pull/497/head
parent
48d0cb4b15
commit
71adc93666
4 changed files with 65 additions and 16 deletions
@ -0,0 +1,35 @@ |
||||
diff --git a/source/data/makedata.mak b/source/data/makedata.mak
|
||||
index 286c18a4d7..3836239ec5 100644
|
||||
--- a/source/data/makedata.mak
|
||||
+++ b/source/data/makedata.mak
|
||||
@@ -33,7 +33,7 @@ ICU_LIB_TARGET=$(DLL_OUTPUT)\$(U_ICUDATA_NAME).dll
|
||||
!ENDIF
|
||||
!MESSAGE ICU data make path is $(ICUMAKE)
|
||||
|
||||
-!IF [py -3 -c "exit(0)"]!=0
|
||||
+!IF [python -c "exit(0)"]!=0
|
||||
!MESSAGE Information: Unable to find Python 3. Data will fail to build from source.
|
||||
!ENDIF
|
||||
|
||||
@@ -283,7 +283,7 @@ $(TOOLS_TS): "$(ICUTOOLS)\genrb\$(CFGTOOLS)\genrb.exe" "$(ICUTOOLS)\gencnval\$(C
|
||||
$(COREDATA_TS):
|
||||
@cd "$(ICUSRCDATA)"
|
||||
set PYTHONPATH=$(ICUP)\source\python;%PYTHONPATH%
|
||||
- py -3 -B -m icutools.databuilder \
|
||||
+ python -B -m icutools.databuilder \
|
||||
--mode windows-exec \
|
||||
--src_dir "$(ICUSRCDATA)" \
|
||||
--tool_dir "$(ICUTOOLS)" \
|
||||
diff --git a/source/test/testdata/testdata.mak b/source/test/testdata/testdata.mak
|
||||
index 2809efd0ca..c20ea05361 100644
|
||||
--- a/source/test/testdata/testdata.mak
|
||||
+++ b/source/test/testdata/testdata.mak
|
||||
@@ -35,7 +35,7 @@ CREATE_DIRS :
|
||||
"$(TESTDATAOUT)\testdata.dat" :
|
||||
@echo Building test data
|
||||
set PYTHONPATH=$(ICUP)\source\python;%PYTHONPATH%
|
||||
- py -3 -B -m icutools.databuilder \
|
||||
+ python -B -m icutools.databuilder \
|
||||
--mode windows-exec \
|
||||
--tool_dir "$(ICUTOOLS)" \
|
||||
--tool_cfg "$(CFG)" \
|
@ -0,0 +1,21 @@ |
||||
package("python-launcher") |
||||
|
||||
set_kind("binary") |
||||
set_homepage("https://www.python.org/") |
||||
set_description("The python programming language.") |
||||
|
||||
if is_arch("x86", "i386") or os.arch() == "x86" then |
||||
add_urls("https://github.com/xmake-mirror/python-windows/releases/download/$(version)/python-launcher-$(version).win32.zip") |
||||
add_versions("3.9.6", "73d712aaca09d7ada78bcf26dfc3346f655b4b1fed5b459133ce564b9c5f5663") |
||||
else |
||||
add_urls("https://github.com/xmake-mirror/python-windows/releases/download/$(version)/python-launcher-$(version).win64.zip") |
||||
add_versions("3.9.6", "fc2a54f47f07a193265cb844c0e1b165682c71a1655e92eb3c44f25bacc84b8a") |
||||
end |
||||
|
||||
on_install("@windows", "@msys", "@cygwin", function (package) |
||||
os.cp("*", package:installdir("bin")) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
os.vrun("py -0p") |
||||
end) |
Loading…
Reference in new issue