Makefile.am
author sl
Thu, 22 May 2014 16:46:50 +0200
changeset 22 efa6ff02287c
permissions -rw-r--r--
Sorting out and testing our display position command.
To avoid refresh artefact we will indeed need to use this feature.
It will go like that:
* Setup off screen buffer
* Swap frame buffer
sl@0
     1
sl@0
     2
AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ $(CFLAGS_TESTGUI)
sl@0
     3
sl@0
     4
if OS_LINUX
sl@0
     5
## Linux
sl@0
     6
bin_PROGRAMS = hidapi-hidraw-testgui hidapi-libusb-testgui
sl@0
     7
sl@0
     8
hidapi_hidraw_testgui_SOURCES = test.cpp
sl@0
     9
hidapi_hidraw_testgui_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la $(LIBS_TESTGUI)
sl@0
    10
sl@0
    11
hidapi_libusb_testgui_SOURCES = test.cpp
sl@0
    12
hidapi_libusb_testgui_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la $(LIBS_TESTGUI)
sl@0
    13
else
sl@0
    14
## Other OS's
sl@0
    15
bin_PROGRAMS = hidapi-testgui
sl@0
    16
sl@0
    17
hidapi_testgui_SOURCES = test.cpp
sl@0
    18
hidapi_testgui_LDADD = $(top_builddir)/$(backend)/libhidapi.la $(LIBS_TESTGUI)
sl@0
    19
endif
sl@0
    20
sl@0
    21
if OS_DARWIN
sl@0
    22
hidapi_testgui_SOURCES = test.cpp mac_support_cocoa.m mac_support.h
sl@0
    23
# Rules for copying the binary and its dependencies into the app bundle.
sl@0
    24
TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT): hidapi-testgui$(EXEEXT)
sl@0
    25
	$(srcdir)/copy_to_bundle.sh
sl@0
    26
sl@0
    27
all: all-am TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT)
sl@0
    28
sl@0
    29
endif
sl@0
    30
sl@0
    31
EXTRA_DIST = \
sl@0
    32
 copy_to_bundle.sh \
sl@0
    33
 Makefile-manual \
sl@0
    34
 Makefile.freebsd \
sl@0
    35
 Makefile.linux \
sl@0
    36
 Makefile.mac \
sl@0
    37
 Makefile.mingw \
sl@0
    38
 TestGUI.app.in \
sl@0
    39
 testgui.sln \
sl@0
    40
 testgui.vcproj
sl@0
    41
sl@0
    42
distclean-local:
sl@0
    43
	rm -rf TestGUI.app