mirror of
https://github.com/jpluimers/macrompatcher.git
synced 2024-05-28 07:41:36 +00:00
875de91fce
1) htonl() and htons() are declared in winsock.h on Windows and require ws2_32 to be linked in. 2) mingw does not have asprintf, so I changed the Qt GUI to use QString's sprintf() member function which should behave identically. 3) Windows Vista and 7 try to run any program with "patch" in the name with administrative privileges for backwards compatibility with legacy stuff, so I added a build step to the Qt app to embed a manifest. I also need to do the same thing with the cli app...
12 lines
254 B
Prolog
12 lines
254 B
Prolog
SOURCES = RomPatcher.cpp main.cpp
|
|
HEADERS = RomPatcher.h
|
|
|
|
CONFIG += qt
|
|
|
|
LIBS += ../lib/libmacrom.a
|
|
|
|
win32 {
|
|
QMAKE_PRE_LINK += "windres --input ../qtgui/RomPatcher.rc --output RomPatcher.res --output-format=coff"
|
|
LIBS += -lws2_32 RomPatcher.res
|
|
}
|