mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-01-31 01:25:21 +01:00
Merge branch 'autotools' of github.com:signal11/hidapi into autotools
This commit is contained in:
@@ -166,6 +166,8 @@ if test "x$testgui_enabled" != "xno"; then
|
||||
LIBS_TESTGUI+=" -framework Cocoa -L/usr/X11R6/lib"
|
||||
CFLAGS_TESTGUI+=`$foxconfig --cflags`
|
||||
OBJCFLAGS+=" -x objective-c++"
|
||||
mkdir -p testgui/TestGUI.app
|
||||
cp -R ${srcdir}/testgui/TestGUI.app.in/ testgui/TestGUI.app
|
||||
elif test "x$os" = xwindows; then
|
||||
# On Windows, just set the paths for Fox toolkit
|
||||
if test "x$win_implementation" = xmingw; then
|
||||
|
||||
1
testgui/.gitignore
vendored
1
testgui/.gitignore
vendored
@@ -17,3 +17,4 @@ hidapi-libusb-testgui
|
||||
.libs
|
||||
*.la
|
||||
*.lo
|
||||
TestGUI.app
|
||||
|
||||
@@ -22,7 +22,7 @@ if OS_DARWIN
|
||||
hidapi_testgui_SOURCES = test.cpp mac_support_cocoa.m
|
||||
# Rules for copying the binary and its dependencies into the app bundle.
|
||||
TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT): hidapi-testgui$(EXEEXT)
|
||||
./copy_to_bundle.sh
|
||||
$(srcdir)/copy_to_bundle.sh
|
||||
|
||||
all: all-am TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT)
|
||||
|
||||
|
||||
@@ -15,11 +15,12 @@ CPPOBJS=test.o
|
||||
OBJCOBJS=mac_support_cocoa.o
|
||||
OBJS=$(COBJS) $(CPPOBJS) $(OBJCOBJS)
|
||||
CFLAGS=-I../hidapi -Wall -g -c `fox-config --cflags`
|
||||
LDFLAGS=-L/usr/X11R6/lib
|
||||
LIBS=`fox-config --libs` -framework IOKit -framework CoreFoundation -framework Cocoa
|
||||
|
||||
|
||||
hidapi-testgui: $(OBJS)
|
||||
g++ -Wall -g $^ $(LIBS) -o hidapi-testgui
|
||||
hidapi-testgui: $(OBJS) TestGUI.app
|
||||
g++ -Wall -g $(OBJS) $(LIBS) $(LDFLAGS) -o hidapi-testgui
|
||||
./copy_to_bundle.sh
|
||||
#cp TestGUI.app/Contents/MacOS/hidapi-testgui TestGUI.app/Contents/MacOS/tg
|
||||
#cp start.sh TestGUI.app/Contents/MacOS/hidapi-testgui
|
||||
@@ -33,8 +34,13 @@ $(CPPOBJS): %.o: %.cpp
|
||||
$(OBJCOBJS): %.o: %.m
|
||||
$(CXX) $(CFLAGS) -x objective-c++ $< -o $@
|
||||
|
||||
TestGUI.app: TestGUI.app.in
|
||||
rm -Rf TestGUI.app
|
||||
mkdir -p TestGUI.app
|
||||
cp -R TestGUI.app.in/ TestGUI.app
|
||||
|
||||
clean:
|
||||
rm $(OBJS) hidapi-testgui
|
||||
rm -f $(OBJS) hidapi-testgui
|
||||
rm -Rf TestGUI.app
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string></string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>TestGUI</string>
|
||||
<string>hidapi-testgui</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>Signal11.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
@@ -53,6 +53,7 @@ function copydeps {
|
||||
z=0
|
||||
else
|
||||
cp $i $EXEPATH
|
||||
chmod 755 $EXEPATH/$BASE
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user