Skip to content

Commit c42af58

Browse files
committed
Native code added
1 parent b51662c commit c42af58

File tree

16 files changed

+1536
-50
lines changed

16 files changed

+1536
-50
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -48,29 +48,6 @@ local.properties
4848
hs_err_pid*
4949

5050

51-
### OSX ###
52-
.DS_Store
53-
.AppleDouble
54-
.LSOverride
55-
56-
# Icon must end with two \r
57-
Icon
58-
59-
# Thumbnails
60-
._*
61-
62-
# Files that might appear on external disk
63-
.Spotlight-V100
64-
.Trashes
65-
66-
# Directories potentially created on remote AFP share
67-
.AppleDB
68-
.AppleDesktop
69-
Network Trash Folder
70-
Temporary Items
71-
.apdisk
72-
73-
7451
### C++ ###
7552
# Compiled Object files
7653
*.slo
@@ -97,3 +74,31 @@ Temporary Items
9774
*.out
9875
*.app
9976

77+
78+
### C ###
79+
# Object files
80+
*.o
81+
*.ko
82+
*.obj
83+
*.elf
84+
85+
# Libraries
86+
*.lib
87+
*.a
88+
*.la
89+
*.lo
90+
91+
# Shared objects (inc. Windows DLLs)
92+
*.dll
93+
*.so
94+
*.so.*
95+
*.dylib
96+
97+
# Executables
98+
*.exe
99+
*.out
100+
*.app
101+
*.i*86
102+
*.x86_64
103+
*.hex
104+

.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,32 @@
33
<name>I2CJava</name>
44
<comment></comment>
55
<projects>
6+
<project>BeagleBoneBlack-I2C</project>
67
</projects>
78
<buildSpec>
9+
<buildCommand>
10+
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
11+
<triggers>clean,full,incremental,</triggers>
12+
<arguments>
13+
</arguments>
14+
</buildCommand>
815
<buildCommand>
916
<name>org.eclipse.jdt.core.javabuilder</name>
1017
<arguments>
1118
</arguments>
1219
</buildCommand>
20+
<buildCommand>
21+
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
22+
<triggers>full,incremental,</triggers>
23+
<arguments>
24+
</arguments>
25+
</buildCommand>
1326
</buildSpec>
1427
<natures>
1528
<nature>org.eclipse.jdt.core.javanature</nature>
29+
<nature>org.eclipse.cdt.core.cnature</nature>
30+
<nature>org.eclipse.cdt.core.ccnature</nature>
31+
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
32+
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
1633
</natures>
1734
</projectDescription>

Debug/jni/subdir.mk

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
# Add inputs and outputs from these tool invocations to the build variables
6+
CPP_SRCS += \
7+
../jni/BBB_I2C.cpp \
8+
../jni/I2C.cpp
9+
10+
OBJS += \
11+
./jni/BBB_I2C.o \
12+
./jni/I2C.o
13+
14+
CPP_DEPS += \
15+
./jni/BBB_I2C.d \
16+
./jni/I2C.d
17+
18+
19+
# Each subdirectory must supply rules for building sources it contributes
20+
jni/%.o: ../jni/%.cpp
21+
@echo 'Building file: $<'
22+
@echo 'Invoking: Cross G++ Compiler'
23+
g++ -I"/Users/cagdas/Dropbox/Workspace/BBBProjects/BeagleBoneBlack-I2C" -I/usr/local/arm/arm-none-linux-gnueabi/arm-none-linux-gnueabi/sysroot/usr/include -I/usr/local/arm/arm-none-linux-gnueabi -I/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home/include/darwin -I/usr/local/arm/arm-none-linux-gnueabi/arm-none-linux-gnueabi -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
24+
@echo 'Finished building: $<'
25+
@echo ' '
26+
27+

Debug/makefile

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
-include ../makefile.init
6+
7+
RM := rm -rf
8+
9+
# All of the sources participating in the build are defined here
10+
-include sources.mk
11+
-include jni/subdir.mk
12+
-include subdir.mk
13+
-include objects.mk
14+
15+
ifneq ($(MAKECMDGOALS),clean)
16+
ifneq ($(strip $(C++_DEPS)),)
17+
-include $(C++_DEPS)
18+
endif
19+
ifneq ($(strip $(C_DEPS)),)
20+
-include $(C_DEPS)
21+
endif
22+
ifneq ($(strip $(CC_DEPS)),)
23+
-include $(CC_DEPS)
24+
endif
25+
ifneq ($(strip $(CPP_DEPS)),)
26+
-include $(CPP_DEPS)
27+
endif
28+
ifneq ($(strip $(CXX_DEPS)),)
29+
-include $(CXX_DEPS)
30+
endif
31+
ifneq ($(strip $(C_UPPER_DEPS)),)
32+
-include $(C_UPPER_DEPS)
33+
endif
34+
endif
35+
36+
-include ../makefile.defs
37+
38+
# Add inputs and outputs from these tool invocations to the build variables
39+
40+
# All Target
41+
all: libI2CJava.so
42+
43+
dependents:
44+
-cd /Users/cagdas/Dropbox/Workspace/BBBProjects/BeagleBoneBlack-I2C/Debug && $(MAKE) clean all
45+
46+
# Tool invocations
47+
libI2CJava.so: $(OBJS) $(USER_OBJS) /Users/cagdas/Dropbox/Workspace/BBBProjects/BeagleBoneBlack-I2C/Debug/libBeagleBoneBlack-I2C.a
48+
@echo 'Building target: $@'
49+
@echo 'Invoking: Cross G++ Linker'
50+
g++ -L"/Users/cagdas/Dropbox/Workspace/BBBProjects/BeagleBoneBlack-I2C/Debug" -shared -o "libI2CJava.so" $(OBJS) $(USER_OBJS) $(LIBS)
51+
@echo 'Finished building target: $@'
52+
@echo ' '
53+
54+
# Other Targets
55+
clean:
56+
-$(RM) $(C++_DEPS)$(OBJS)$(C_DEPS)$(CC_DEPS)$(LIBRARIES)$(CPP_DEPS)$(CXX_DEPS)$(C_UPPER_DEPS) libI2CJava.so
57+
-@echo ' '
58+
59+
.PHONY: all clean dependents
60+
.SECONDARY:
61+
/Users/cagdas/Dropbox/Workspace/BBBProjects/BeagleBoneBlack-I2C/Debug/libBeagleBoneBlack-I2C.a:
62+
63+
-include ../makefile.targets

Debug/objects.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
USER_OBJS :=
6+
7+
LIBS := -lBeagleBoneBlack-I2C
8+

Debug/sources.mk

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
O_SRCS :=
6+
CPP_SRCS :=
7+
C_UPPER_SRCS :=
8+
C_SRCS :=
9+
S_UPPER_SRCS :=
10+
OBJ_SRCS :=
11+
ASM_SRCS :=
12+
CXX_SRCS :=
13+
C++_SRCS :=
14+
CC_SRCS :=
15+
C++_DEPS :=
16+
OBJS :=
17+
C_DEPS :=
18+
CC_DEPS :=
19+
LIBRARIES :=
20+
CPP_DEPS :=
21+
CXX_DEPS :=
22+
C_UPPER_DEPS :=
23+
24+
# Every subdirectory with source files must be described here
25+
SUBDIRS := \
26+
jni \
27+

bbb/jni/subdir.mk

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
# Add inputs and outputs from these tool invocations to the build variables
6+
O_SRCS += \
7+
../jni/BBB_I2C.o \
8+
../jni/I2C.o
9+
10+
CPP_SRCS += \
11+
../jni/BBB_I2C.cpp \
12+
../jni/I2C.cpp
13+
14+
OBJS += \
15+
./jni/BBB_I2C.o \
16+
./jni/I2C.o
17+
18+
CPP_DEPS += \
19+
./jni/BBB_I2C.d \
20+
./jni/I2C.d
21+
22+
23+
# Each subdirectory must supply rules for building sources it contributes
24+
jni/%.o: ../jni/%.cpp
25+
@echo 'Building file: $<'
26+
@echo 'Invoking: Cross G++ Compiler'
27+
g++ -I"/Users/cagdas/Dropbox/Workspace/BBBProjects/BeagleBoneBlack-I2C" -I/usr/local/arm/arm-none-linux-gnueabi/arm-none-linux-gnueabi/sysroot/usr/include -I/usr/local/arm/arm-none-linux-gnueabi -I/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home/include/darwin -I/usr/local/arm/arm-none-linux-gnueabi/arm-none-linux-gnueabi -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
28+
@echo 'Finished building: $<'
29+
@echo ' '
30+
31+

bbb/makefile

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
-include ../makefile.init
6+
7+
RM := rm -rf
8+
9+
# All of the sources participating in the build are defined here
10+
-include sources.mk
11+
-include jni/subdir.mk
12+
-include subdir.mk
13+
-include objects.mk
14+
15+
ifneq ($(MAKECMDGOALS),clean)
16+
ifneq ($(strip $(C++_DEPS)),)
17+
-include $(C++_DEPS)
18+
endif
19+
ifneq ($(strip $(C_DEPS)),)
20+
-include $(C_DEPS)
21+
endif
22+
ifneq ($(strip $(CC_DEPS)),)
23+
-include $(CC_DEPS)
24+
endif
25+
ifneq ($(strip $(CPP_DEPS)),)
26+
-include $(CPP_DEPS)
27+
endif
28+
ifneq ($(strip $(CXX_DEPS)),)
29+
-include $(CXX_DEPS)
30+
endif
31+
ifneq ($(strip $(C_UPPER_DEPS)),)
32+
-include $(C_UPPER_DEPS)
33+
endif
34+
endif
35+
36+
-include ../makefile.defs
37+
38+
# Add inputs and outputs from these tool invocations to the build variables
39+
40+
# All Target
41+
all: libI2CJava.so
42+
43+
dependents:
44+
-cd /Users/cagdas/Dropbox/Workspace/BBBProjects/BeagleBoneBlack-I2C/Debug && $(MAKE) all
45+
46+
# Tool invocations
47+
libI2CJava.so: $(OBJS) $(USER_OBJS) /Users/cagdas/Dropbox/Workspace/BBBProjects/BeagleBoneBlack-I2C/Debug/libBeagleBoneBlack-I2C.a
48+
@echo 'Building target: $@'
49+
@echo 'Invoking: Cross G++ Linker'
50+
g++ -L"/Users/cagdas/Dropbox/Workspace/BBBProjects/BeagleBoneBlack-I2C/Debug" -shared -o "libI2CJava.so" $(OBJS) $(USER_OBJS) $(LIBS)
51+
@echo 'Finished building target: $@'
52+
@echo ' '
53+
54+
# Other Targets
55+
clean:
56+
-$(RM) $(C++_DEPS)$(OBJS)$(C_DEPS)$(CC_DEPS)$(LIBRARIES)$(CPP_DEPS)$(CXX_DEPS)$(C_UPPER_DEPS) libI2CJava.so
57+
-@echo ' '
58+
59+
.PHONY: all clean dependents
60+
.SECONDARY:
61+
/Users/cagdas/Dropbox/Workspace/BBBProjects/BeagleBoneBlack-I2C/Debug/libBeagleBoneBlack-I2C.a:
62+
63+
-include ../makefile.targets

bbb/objects.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
USER_OBJS :=
6+
7+
LIBS := -lBeagleBoneBlack-I2C
8+

0 commit comments

Comments
 (0)