File tree Expand file tree Collapse file tree 5 files changed +11
-26
lines changed Expand file tree Collapse file tree 5 files changed +11
-26
lines changed Original file line number Diff line number Diff line change 22
22
run : |
23
23
brew update
24
24
brew install --formula ninja swig doxygen boost
25
- brew unlink [email protected] || true
26
25
brew unlink [email protected] || true
27
26
brew unlink [email protected] || true
28
27
brew unlink openssl@3 || true
@@ -136,8 +135,10 @@ jobs:
136
135
include :
137
136
- toolset : 143
138
137
image : windows-2022
138
+ vcvars : " C:\\ Program Files\\ Microsoft Visual Studio\\ 2022\\ Enterprise\\ VC\\ Auxiliary\\ Build\\ vcvarsall.bat"
139
139
- toolset : 142
140
140
image : windows-2019
141
+ vcvars : " C:\\ Program Files (x86)\\ Microsoft Visual Studio\\ 2019\\ Enterprise\\ VC\\ Auxiliary\\ Build\\ vcvarsall.bat"
141
142
- platform : x86
142
143
setenv : amd64_x86
143
144
- platform : x64
@@ -166,17 +167,13 @@ jobs:
166
167
Invoke-WebRequest -UserAgent "Wget" "https://sourceforge.net/projects/swig/files/swigwin/swigwin-4.2.1/swigwin-4.2.1.zip/download" -OutFile swig.zip
167
168
tar xf swig.zip
168
169
- uses : actions/setup-python@v5
169
- if : matrix.platform == 'x86 '
170
+ if : matrix.platform != 'arm64 '
170
171
with :
171
172
python-version : 3.12
172
- architecture : x86
173
- - name : Setup dev env
174
- uses : ilammy/msvc-dev-cmd@v1
175
- with :
176
- arch : ${{ matrix.setenv }}
173
+ architecture : ${{ matrix.platform }}
177
174
- name : Build
178
175
run : |
179
- & .\ build.ps1 `
176
+ & "${{ matrix.vcvars }}" ${{ matrix.setenv }} "&&" pwsh build.ps1 `
180
177
-swig ${{ github.workspace }}/swigwin-4.2.1/swig.exe `
181
178
-doxygen "C:/Program files/doxygen/bin/doxygen.exe" `
182
179
-boost
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ endif()
77
77
find_package (SWIG )
78
78
if (SWIG_FOUND )
79
79
find_package (JNI )
80
- find_package (Python3 COMPONENTS Interpreter Development )
80
+ find_package (Python3 COMPONENTS Development )
81
81
if ((WIN32 OR APPLE ) AND CMAKE_VERSION VERSION_GREATER_EQUAL "3.24" )
82
82
find_package (Python3 COMPONENTS Development.SABIModule )
83
83
endif ()
Original file line number Diff line number Diff line change @@ -43,13 +43,11 @@ if($doxygen) {
43
43
$cmakeext += " -DDOXYGEN_EXECUTABLE=$doxygen "
44
44
$wixext += " -d" , " docLocation=$ ( Get-Location ) /$platform /share/doc/libdigidocpp"
45
45
}
46
- if ($env: VSCMD_ARG_HOST_ARCH -ne " arm64" ) {
46
+ if ($platform -eq " arm64 " -and $ env: VSCMD_ARG_HOST_ARCH -ne " arm64" ) {
47
47
$cmakeext += " -DCMAKE_DISABLE_FIND_PACKAGE_Python3=yes"
48
48
$wixext += " -d" , " disablePython=1"
49
- if ($platform -eq " arm64" ) {
50
- $boost = $false
51
- }
52
- }
49
+ $boost = $false
50
+ }
53
51
if ($boost ) {
54
52
$cmakeext += " -DVCPKG_MANIFEST_FEATURES=tests"
55
53
$target += " check"
Original file line number Diff line number Diff line change 105
105
<Files Include =" $(var.libdigidocpp)\include\**" />
106
106
</ComponentGroup >
107
107
108
- <?ifdef var .docLocation ?>
109
- <ComponentGroup Id =" Documentation" Directory =" INSTALLFOLDER" Subdirectory =" documentation" >
110
- <Files Include =" $(var.docLocation)\**" />
111
- </ComponentGroup >
112
- <?endif ?>
113
-
114
108
<Feature Id =" InstallLibdigidocpp" Level =" 1" Title =" Libdigidocpp" Display =" expand" ConfigurableDirectory =" INSTALLFOLDER" >
115
109
<ComponentGroupRef Id =" Runtime" />
116
110
<ComponentGroupRef Id =" Dependencies" />
124
118
</Feature >
125
119
<?ifdef var .docLocation ?>
126
120
<Feature Id =" InstallDocumentation" Level =" 1" Title =" Documentation" >
127
- <ComponentGroupRef Id = " Documentation " />
121
+ <Files Include = " $(var.docLocation)\** " Directory = " INSTALLFOLDER " Subdirectory = " documentation " />
128
122
</Feature >
129
123
<?endif ?>
130
124
</Feature >
Original file line number Diff line number Diff line change @@ -207,15 +207,11 @@ if(SWIG_FOUND)
207
207
endif ()
208
208
#configure_file(setup.py.cmake setup.py)
209
209
#install(CODE "execute_process(COMMAND python3 ${CMAKE_CURRENT_BINARY_DIR}/setup.py install)")
210
- if (NOT Python3_SITELIB )
211
- execute_process (COMMAND /usr/bin/python3 -c
212
- "from distutils import sysconfig;print(sysconfig.get_python_lib(plat_specific=False,standard_lib=False))"
213
- OUTPUT_VARIABLE Python3_SITELIB OUTPUT_STRIP_TRAILING_WHITESPACE )
214
- endif ()
215
210
if (WIN32 )
216
211
set (Python3_SITELIB ${CMAKE_INSTALL_BINDIR} )
217
212
install (FILES $< TARGET_PDB_FILE:digidoc_python> DESTINATION ${Python3_SITELIB} OPTIONAL )
218
213
else ()
214
+ find_package (Python3 COMPONENTS Interpreter ) # for Python3_SITELIB
219
215
set_target_properties (digidoc_python PROPERTIES SUFFIX .so )
220
216
endif ()
221
217
set_target_properties (digidoc_python PROPERTIES
You can’t perform that action at this time.
0 commit comments