-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathjnotify.pro
49 lines (46 loc) · 1.86 KB
/
jnotify.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# QMake project file to build jnotify native libraries
TEMPLATE = lib
CONFIG -= qt
TARGET = aerofsjn
macx {
# separate SDKROOT optional
#SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/
QMAKE_CFLAGS += -mmacosx-version-min=10.5 -fPIC -arch x86_64 -O3 -Wall
INCLUDEPATH += $$PWD/osx
INCLUDEPATH += "$$(SDKROOT)/System/Library/Frameworks/JavaVM.framework/Headers"
HEADERS += osx/net_contentobjects_jnotify_macosx_JNotify_macosx.h
SOURCES += osx/net_contentobjects_jnotify_macosx_JNotify_macosx.c
LIBS += -framework CoreFoundation -framework CoreServices
DESTDIR = native/osx
}
win32 {
QMAKE_CXXFLAGS += -DUNICODE -D_UNICODE
INCLUDEPATH += $$PWD/win32
INCLUDEPATH += "$$(JAVA_HOME)\\include"
INCLUDEPATH += "$$(JAVA_HOME)\\include\\win32"
HEADERS += win32/net_contentobjects_jnotify_win32_JNotify_win32.h \
win32/Lock.h \
win32/Logger.h \
win32/WatchData.h \
win32/Win32FSHook.h
SOURCES += win32/net_contentobjects_jnotify_win32_JNotify_win32.cpp \
win32/Lock.cpp \
win32/Logger.cpp \
win32/WatchData.cpp \
win32/Win32FSHook.cpp
DESTDIR = native/win
}
linux-* {
DEFINES += "_FILE_OFFSET_BITS=64"
INCLUDEPATH += $$PWD/linux
INCLUDEPATH += "$$(JAVA_HOME)/include"
INCLUDEPATH += "$$(JAVA_HOME)/include/linux"
HEADERS += linux/inotify-syscalls.h \
linux/net_contentobjects_jnotify_linux_JNotify_linux.h
SOURCES += linux/net_contentobjects_jnotify_linux_JNotify_linux.c
*-64 {
DESTDIR = native/linux/amd64
} else {
DESTDIR = native/linux/i386
}
}