91 Commits

Author SHA1 Message Date
Kovid Goyal
9448c42a64
Use higher optimization level for building extensions
O3 on gcc/clang and O2 on MSVC
Fixes #2145 (Add -O3 to extension compile flags)
2023-12-29 09:37:07 +05:30
Kovid Goyal
76ec0583df
Fix #2130 (Use canonical method to invoke sip-build tool) 2023-12-03 22:23:31 +05:30
Kovid Goyal
aa48fc63d0
Better escaping for flags in the generated toml file for building pyqt extensions 2023-11-27 15:41:12 +05:30
Eli Schwartz
0eca1bd9ca
build: pass on the user's compiler and compiler-flags settings to qmake
PyQt-builder uses qmake under the hood, which has a frustrating habit of
not respecting standard stuff like $CC / $CFLAGS unless the project
authors go out of their way to manually specify to use the same value as
gotten from the environment.

Implement this for the same environment variables that we currently respect
when building internal extensions *without* PyQt-builder.
2023-09-25 22:13:57 -04:00
Kovid Goyal
d608e1be54
Drop the dependency on xwin replace with using msitools
xwin doesnt work with current SDKs anyway.
https://github.com/Jake-Shadle/xwin/issues/92
2023-08-20 21:05:24 +05:30
Kovid Goyal
76fbbef9d0
Start work on porting to new PoDoFo API 2023-05-20 14:11:46 +05:30
Kovid Goyal
22cea8d90a
MSVC does not like std:c++11 2023-01-27 15:36:49 +05:30
Kovid Goyal
649baf052f
Nicer error formatting when cross compiling 2023-01-27 15:20:02 +05:30
Kovid Goyal
e145f42fdc
Fix generation of compile_commands.json for windows specific extensions 2023-01-27 13:25:08 +05:30
Kovid Goyal
ef9e669ef9
Cross compiling now actually works
At least for non-PyQt based extensions
2023-01-27 12:47:46 +05:30
Kovid Goyal
d13404d9ea
Refactor the build system to allow cross compiling windows native code extensions on linux 2023-01-27 12:03:37 +05:30
Kovid Goyal
d6a0f4bb9d
Clean up C/C++ std specifications 2023-01-26 21:06:39 +05:30
Kovid Goyal
58c9ca9519
... 2023-01-26 20:49:13 +05:30
Kovid Goyal
a92149c5b8
Move the compile_commands database into build dir 2023-01-26 13:27:05 +05:30
Kovid Goyal
c1b488d552
Better failure message when extension not built 2022-09-30 08:07:27 +05:30
Kovid Goyal
178f94a271
Dont link rcc_backend against qtgui 2022-07-06 19:19:42 +05:30
Kovid Goyal
9f0ab6e40f
Get rcc compiler building 2022-07-06 19:19:42 +05:30
Kovid Goyal
5db39aa16e
Drop 32-bit code paths 2022-07-06 19:19:39 +05:30
Kovid Goyal
e195b3a1e2
Build universal binaries on macOS 2022-07-06 19:19:37 +05:30
Kovid Goyal
17d9cd0b6a
Add the SW prefix to cmake when building headless 2022-07-06 19:19:35 +05:30
Kovid Goyal
e3d0259d70
Get the Qt plugins building with Qt6 2022-07-06 19:19:32 +05:30
Kovid Goyal
f56d0b5ec0
Replace references to PyQt5 in the source 2022-07-06 19:19:32 +05:30
Kovid Goyal
24c460faec
also upgrade code in setup folder 2022-01-08 12:15:18 +05:30
Kovid Goyal
f01268b2ec
Remove deprecated distutils 2021-12-13 21:55:53 +05:30
Christian Clauss
3e81179175 Fix more typos 2021-10-02 17:15:24 +02:00
Zbigniew Jędrzejewski-Szmek
9d63b6ae56 Drop (object) from class definitions
Python2 had old-style classes (no "(object)"), and new style classes (with
"object"). Under Py3 this is a noop, so let's drop it to make the code
a bit shorter.
2021-09-30 09:23:56 +02:00
Kovid Goyal
618bf197e2
Fix more deprecation warnings in the test suite 2021-06-24 09:09:04 +05:30
Kovid Goyal
a37c14499c
Fix building of sqlite_extension on ancient Linux 2021-06-16 17:14:31 +05:30
Kovid Goyal
d8595e5bf5
Fix ICU build on Windows 2021-06-16 17:02:07 +05:30
Kovid Goyal
6d845cfa37
Generate db of compile commands for use by tools when building 2021-06-14 09:02:55 +05:30
Kovid Goyal
73a312dd64
Workaround for sip version mismatch on Arch 2021-05-13 08:40:37 +05:30
Kovid Goyal
d368c4f96e
Dont chdir as part of sip-build command
Instead chdir overall, makes the command simpler.
2021-05-13 07:48:08 +05:30
Kovid Goyal
c8b5289a34
Handle empty parser state stack 2021-03-20 21:14:14 +05:30
Kovid Goyal
370ece64b0
Add sanitize build option 2021-03-20 20:15:34 +05:30
Kovid Goyal
9765f4a81f
Add a build flag to build in debug mode 2021-03-20 16:53:15 +05:30
Kovid Goyal
0f2aff9a4a
Cleanup path handling when building on windows 2021-03-18 21:41:15 +05:30
Kovid Goyal
75586d8eb0
Always build on Windows with Visual Studio 2019 2021-03-18 21:22:31 +05:30
Kovid Goyal
b1c34ab520
Add support for building with c++14 2021-03-18 07:40:07 +05:30
Kovid Goyal
04ad7bc901
Remove workarounds that are not needed with the current versions of sip-build 2020-12-03 22:03:05 +05:30
Kovid Goyal
7a4b3f61ff
Move to SIP v5 2020-09-16 21:52:25 +05:30
Kovid Goyal
a4df5cc67b
Dont use -b flag when calling sip
Was inexplicably removed from SIP5
2020-09-14 12:26:08 +05:30
Kovid Goyal
9642eeea83
Also use macos in extensions.json 2020-09-09 19:28:07 +05:30
Kovid Goyal
7f6dce5218
Fix build failure missed one isosx instance 2020-09-09 15:56:14 +05:30
Kovid Goyal
13552bef07
isosx -> ismacos 2020-09-09 14:51:09 +05:30
Kovid Goyal
0213b80693
Tell MSVC our source files are UTF-8 2020-08-22 18:48:07 +05:30
Kovid Goyal
2e1c57a86c
... 2020-08-22 18:48:02 +05:30
Kovid Goyal
5a1b4430b2
Colorize compiler output on linux 2020-08-22 18:48:02 +05:30
Kovid Goyal
dd12f0a76e
Parallelize building sip files 2020-08-22 18:48:02 +05:30
Kovid Goyal
dc4e482799
Fully parallelize building of non-pyqt extensions 2020-08-22 18:48:02 +05:30
Kovid Goyal
ec167b7ac7
Get the linux frozen build working with py3 2020-08-22 18:47:56 +05:30