qmake build works again

This commit is contained in:
Hugues Delorme 2014-01-29 17:28:30 +01:00
parent 6abac58deb
commit ad3eed423f
2 changed files with 26 additions and 1 deletions

24
qmake/config.h Normal file
View File

@ -0,0 +1,24 @@
#ifndef FOUG_CONFIG_H
#define FOUG_CONFIG_H
#ifdef __GNUC__
# ifndef FOUG_HAVE_GCC_BUILTIN_BSWAP_FUNC
# define FOUG_HAVE_GCC_BUILTIN_BSWAP_FUNC
# endif
# ifndef FOUG_HAVE_STDINT_H
# define FOUG_HAVE_STDINT_H
# endif
#endif /* __GNUC__ */
#ifdef _MSC_VER
# ifndef FOUG_HAVE_MSVC_BUILTIN_BSWAP_FUNC
# define FOUG_HAVE_MSVC_BUILTIN_BSWAP_FUNC
# endif
# if !defined(FOUG_HAVE_STDINT_H) && _MSV_VER >= 1600 /* Visual C++ 2010 */
# define FOUG_HAVE_STDINT_H
# endif
#endif /* _MSC_VER */
#endif /* FOUG_CONFIG_H */

View File

@ -21,6 +21,7 @@ dll:DEFINES += FOUG_LIB_DLL \
#*g++*:QMAKE_CXXFLAGS_RELEASE += -O3
HEADERS += \
config.h \
../src/endian.h \
../src/error.h \
../src/global.h \
@ -47,7 +48,7 @@ SOURCES += \
*-msvc*:QMAKE_CFLAGS += -TC
global_inc.path = $$PREFIX_DIR/include/datax
global_inc.files = ../src/*.h
global_inc.files = config.h ../src/*.h
INSTALLS += global_inc
# libSTL