-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Build windows outputs into arch-specific build dirs.
This is just for local compilation so we don't need to keep deleting `_build` and can instead build both in the same source directory. Also removed some unused code for wine dll prefixes.
- Loading branch information
Showing
2 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/make -f | ||
|
||
ifeq ($(ARCH),i686) | ||
WINE_DLL_DIR=/usr/lib/i386-linux-gnu/wine/i386-windows | ||
endif | ||
ifeq ($(ARCH),x86_64) | ||
WINE_DLL_DIR=/usr/lib/x86_64-linux-gnu/wine/x86_64-windows /usr/lib/i386-linux-gnu/wine/i386-windows | ||
endif | ||
|
||
dlls-required: $(EXES:$(PREFIX_DIR)/%=$(BUILD_DIR)/%.check) | ||
@cat $+ >$@ | ||
|
||
$(BUILD_DIR)/%.check: $(PREFIX_DIR)/% $(WINE_DLL_DIR:=/kernel32.dll) | ||
@echo "Checking $<" | ||
@mkdir -p $(@D) | ||
@python3 /usr/local/bin/mingw-ldd.py "$<" --dll-lookup-dirs "$(PREFIX_DIR)" $(WINE_DLL_DIR) --output-format tree >$@ |