-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c732c3
commit 6dece71
Showing
11 changed files
with
586 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,3 +56,6 @@ build-*/ | |
|
||
# Visual Studio | ||
.vs/ | ||
|
||
# Geode resources | ||
!resources/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
|
||
appname="linux-input.exe.so" | ||
# determine the application directory | ||
appdir='' | ||
case "$0" in | ||
*/*) | ||
# $0 contains a path, use it | ||
appdir=`dirname "$0"` | ||
;; | ||
*) | ||
# no directory in $0, search in PATH | ||
saved_ifs=$IFS | ||
IFS=: | ||
for d in $PATH | ||
do | ||
IFS=$saved_ifs | ||
if [ -x "$d/$appname" ]; then appdir="$d"; break; fi | ||
done | ||
;; | ||
esac | ||
|
||
# figure out the full app path | ||
if [ -n "$appdir" ]; then | ||
apppath="$appdir/$appname" | ||
WINEDLLPATH="$appdir:$WINEDLLPATH" | ||
export WINEDLLPATH | ||
else | ||
apppath="$appname" | ||
fi | ||
|
||
# determine the WINELOADER | ||
if [ ! -x "$WINELOADER" ]; then WINELOADER="wine"; fi | ||
|
||
# and try to start the app | ||
exec "$WINELOADER" "$apppath" "$@" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
### Generated by Winemaker 0.8.4 | ||
### | ||
### Invocation command line was | ||
### /usr/bin/winemaker -iws2_32 -ievdev . --single-target linux-input | ||
|
||
|
||
SRCDIR = . | ||
SUBDIRS = | ||
DLLS = | ||
LIBS = | ||
EXES = linux-input | ||
|
||
|
||
|
||
### Common settings | ||
|
||
CEXTRA = | ||
CXXEXTRA = | ||
RCEXTRA = | ||
DEFINES = | ||
INCLUDE_PATH = | ||
DLL_PATH = | ||
DLL_IMPORTS = ws2_32 \ | ||
evdev | ||
LIBRARY_PATH = | ||
LIBRARIES = | ||
|
||
|
||
### linux-input sources and settings | ||
|
||
linux_input_MODULE = linux-input | ||
linux_input_C_SRCS = | ||
linux_input_CXX_SRCS = linux-input.cpp | ||
linux_input_RC_SRCS = | ||
linux_input_LDFLAGS = | ||
linux_input_ARFLAGS = | ||
linux_input_DLL_PATH = | ||
linux_input_DLLS = | ||
linux_input_LIBRARY_PATH= | ||
linux_input_LIBRARIES = | ||
|
||
linux_input_OBJS = $(linux_input_C_SRCS:.c=.o) \ | ||
$(linux_input_CXX_SRCS:.cpp=.o) \ | ||
$(linux_input_RC_SRCS:.rc=.res) | ||
|
||
|
||
|
||
### Global source lists | ||
|
||
C_SRCS = $(linux_input_C_SRCS) | ||
CXX_SRCS = $(linux_input_CXX_SRCS) | ||
RC_SRCS = $(linux_input_RC_SRCS) | ||
|
||
|
||
### Tools | ||
|
||
CC = winegcc | ||
CXX = wineg++ | ||
RC = wrc | ||
AR = ar | ||
|
||
|
||
### Generic targets | ||
|
||
all: $(SUBDIRS) $(DLLS:%=%.so) $(LIBS) $(EXES) | ||
|
||
### Build rules | ||
|
||
.PHONY: all clean dummy | ||
|
||
$(SUBDIRS): dummy | ||
@cd $@ && $(MAKE) | ||
|
||
# Implicit rules | ||
|
||
.SUFFIXES: .cpp .cxx .rc .res | ||
DEFINCL = $(INCLUDE_PATH) $(DEFINES) $(OPTIONS) | ||
|
||
.c.o: | ||
$(CC) -c $(CFLAGS) $(CEXTRA) $(DEFINCL) -o $@ $< | ||
|
||
.cpp.o: | ||
$(CXX) -c $(CXXFLAGS) $(CXXEXTRA) $(DEFINCL) -o $@ $< | ||
|
||
.cxx.o: | ||
$(CXX) -c $(CXXFLAGS) $(CXXEXTRA) $(DEFINCL) -o $@ $< | ||
|
||
.rc.res: | ||
$(RC) $(RCFLAGS) $(RCEXTRA) $(DEFINCL) -fo$@ $< | ||
|
||
# Rules for cleaning | ||
|
||
CLEAN_FILES = y.tab.c y.tab.h lex.yy.c core *.orig *.rej \ | ||
\\\#*\\\# *~ *% .\\\#* | ||
|
||
clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__) | ||
$(RM) $(CLEAN_FILES) $(RC_SRCS:.rc=.res) $(C_SRCS:.c=.o) $(CXX_SRCS:.cpp=.o) | ||
$(RM) $(DLLS:%=%.so) $(LIBS) $(EXES) $(EXES:%=%.so) | ||
|
||
$(SUBDIRS:%=%/__clean__): dummy | ||
cd `dirname $@` && $(MAKE) clean | ||
|
||
$(EXTRASUBDIRS:%=%/__clean__): dummy | ||
-cd `dirname $@` && $(RM) $(CLEAN_FILES) | ||
|
||
### Target specific build rules | ||
DEFLIB = $(LIBRARY_PATH) $(LIBRARIES) $(DLL_PATH) $(DLL_IMPORTS:%=-l%) | ||
|
||
$(linux_input_MODULE): $(linux_input_OBJS) | ||
$(CXX) $(linux_input_LDFLAGS) -o $@ $(linux_input_OBJS) $(linux_input_LIBRARY_PATH) $(linux_input_DLL_PATH) $(DEFLIB) $(linux_input_DLLS:%=-l%) $(linux_input_LIBRARIES:%=-l%) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# too lazy to make this into a github workflow | ||
winemaker -iws2_32 -ievdev . --single-target linux-input | ||
make | ||
cp linux-input.exe ../../resources/linux-input.exe | ||
cp linux-input.exe.so ../../resources/linux-input.exe.so |
Oops, something went wrong.