bzr branch
http://suren.me/webbzr/alps/pcitool
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
1 |
project(pcitool) |
2 |
||
227
by Suren A. Chilingaryan
Initial implementation of IPEDMA, dummy driver for KAPTURE, start of API changes |
3 |
set(PCILIB_VERSION "0.1.0") |
4 |
set(PCILIB_ABI_VERSION "1") |
|
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
5 |
|
203
by root
Provide kmem addresses in sysfs |
6 |
cmake_minimum_required(VERSION 2.6) |
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
7 |
|
152
by Suren A. Chilingaryan
build scripts: allow to build the library without pcitool |
8 |
set(DISABLE_PCITOOL FALSE CACHE BOOL "Build only the library") |
9 |
||
10 |
||
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
11 |
find_package(PkgConfig REQUIRED) |
156
by Suren A. Chilingaryan
Portable pthreads detection |
12 |
find_package(Threads REQUIRED) |
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
13 |
|
14 |
#Check in sibling directory
|
|
152
by Suren A. Chilingaryan
build scripts: allow to build the library without pcitool |
15 |
if (NOT DISABLE_PCITOOL) |
16 |
pkg_check_modules(FASTWRITER fastwriter REQUIRED) |
|
17 |
endif (NOT DISABLE_PCITOOL) |
|
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
18 |
|
236
by Suren A. Chilingaryan
Big redign of model structures |
19 |
set(HEADERS pcilib.h pci.h config.h model.h bank.h register.h kmem.h irq.h dma.h event.h tools.h error.h) |
20 |
add_definitions("-fPIC --std=c99 -Wall -O2 -gdwarf-2 -g3") |
|
21 |
#add_definitions("-fPIC --std=c99 -Wall -O2")
|
|
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
22 |
|
23 |
add_subdirectory(dma) |
|
236
by Suren A. Chilingaryan
Big redign of model structures |
24 |
add_subdirectory(protocols) |
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
25 |
add_subdirectory(pcitool) |
201
by Suren A. Chilingaryan
Xilinx benchmark |
26 |
add_subdirectory(apps) |
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
27 |
|
174.1.3
by Suren A. Chilingaryan
Fixes building in non-standard dirs |
28 |
include_directories( |
236
by Suren A. Chilingaryan
Big redign of model structures |
29 |
.
|
174.1.3
by Suren A. Chilingaryan
Fixes building in non-standard dirs |
30 |
${FASTWRITER_INCLUDE_DIRS} |
31 |
)
|
|
32 |
||
33 |
link_directories( |
|
34 |
${FASTWRITER_LIBRARY_DIRS} |
|
35 |
${UFODECODE_LIBRARY_DIRS} |
|
36 |
)
|
|
37 |
||
236
by Suren A. Chilingaryan
Big redign of model structures |
38 |
add_library(pcilib SHARED pci.c config.c model.c bank.c register.c kmem.c irq.c dma.c event.c tools.c error.c) |
39 |
target_link_libraries(pcilib dma protocols ${CMAKE_THREAD_LIBS_INIT} ${UFODECODE_LIBRARIES} ) |
|
40 |
add_dependencies(pcilib dma protocols pcitool) |
|
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
41 |
|
42 |
set_target_properties(pcilib PROPERTIES |
|
43 |
VERSION ${PCILIB_VERSION} |
|
44 |
SOVERSION ${PCILIB_ABI_VERSION} |
|
45 |
)
|
|
46 |
||
152
by Suren A. Chilingaryan
build scripts: allow to build the library without pcitool |
47 |
if (NOT DISABLE_PCITOOL) |
48 |
add_executable(pci cli.c) |
|
49 |
add_dependencies(pci pcitool) |
|
174.1.3
by Suren A. Chilingaryan
Fixes building in non-standard dirs |
50 |
target_link_libraries(pci pcilib pcitool ${FASTWRITER_LIBRARIES}) |
155.1.1
by Suren A. Chilingaryan
Link pci with pthread |
51 |
set_target_properties(pci PROPERTIES |
157
by Suren A. Chilingaryan
merge |
52 |
LINK_FLAGS ${CMAKE_THREAD_LIBS_INIT} |
155.1.1
by Suren A. Chilingaryan
Link pci with pthread |
53 |
)
|
152
by Suren A. Chilingaryan
build scripts: allow to build the library without pcitool |
54 |
endif (NOT DISABLE_PCITOOL) |
126
by Suren A. Chilingaryan
multithread preprocessing of ipecamera frames and code reorganization |
55 |
|
56 |
#set_target_properties(pci PROPERTIES
|
|
57 |
# LINK_FLAGS "-Wl,pcitool/libpcitool.a"
|
|
58 |
#)
|
|
59 |
||
140
by Suren A. Chilingaryan
Add install targets to cmake |
60 |
if(NOT DEFINED BIN_INSTALL_DIR) |
61 |
set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin") |
|
62 |
endif(NOT DEFINED BIN_INSTALL_DIR) |
|
63 |
||
64 |
||
65 |
install(TARGETS pcilib |
|
66 |
LIBRARY DESTINATION lib${LIB_SUFFIX} |
|
67 |
)
|
|
68 |
||
152
by Suren A. Chilingaryan
build scripts: allow to build the library without pcitool |
69 |
if (NOT DISABLE_PCITOOL) |
70 |
install(TARGETS pci |
|
71 |
DESTINATION ${BIN_INSTALL_DIR} |
|
72 |
)
|
|
73 |
endif (NOT DISABLE_PCITOOL) |
|
140
by Suren A. Chilingaryan
Add install targets to cmake |
74 |
|
75 |
install(FILES pcilib.h |
|
76 |
DESTINATION include |
|
77 |
)
|
|
236
by Suren A. Chilingaryan
Big redign of model structures |
78 |
|
79 |
install(FILES bank.h register.h dma.h event.h model.h error.h tools.h |
|
80 |
DESTINATION include/pcilib |
|
81 |
)
|