Skip to content

Commit 6e1a563

Browse files
committed
first commit
0 parents  commit 6e1a563

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+14677
-0
lines changed

CMakeLists.txt

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
cmake_minimum_required(VERSION 3.6)
2+
project(overlayaz)
3+
4+
find_package(PkgConfig REQUIRED)
5+
6+
pkg_check_modules(GTK REQUIRED gtk+-3.0)
7+
include_directories(${GTK_INCLUDE_DIRS})
8+
link_directories(${GTK_LIBRARY_DIRS})
9+
add_definitions(${GTK_CFLAGS_OTHER})
10+
11+
pkg_check_modules(SQLITE REQUIRED sqlite3)
12+
include_directories(${SQLITE_INCLUDE_DIRS})
13+
link_directories(${SQLITE_LIBRARY_DIRS})
14+
add_definitions(${SQLITE_CFLAGS_OTHER})
15+
16+
pkg_check_modules(JSON-C REQUIRED json-c)
17+
include_directories(${JSON-C_INCLUDE_DIRS})
18+
link_directories(${JSON-C_LIBRARY_DIRS})
19+
add_definitions(${JSON-C_CFLAGS_OTHER})
20+
21+
pkg_check_modules(OSMGPSMAP REQUIRED osmgpsmap-1.0)
22+
include_directories(${OSMGPSMAP_INCLUDE_DIRS})
23+
link_directories(${OSMGPSMAP_LIBRARY_DIRS})
24+
add_definitions(${OSMGPSMAP_CFLAGS_OTHER})
25+
26+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -pedantic -std=c11")
27+
enable_testing()
28+
29+
set(LIBRARIES
30+
${GTK_LIBRARIES}
31+
${SQLITE_LIBRARIES}
32+
${JSON-C_LIBRARIES}
33+
${OSMGPSMAP_LIBRARIES}
34+
m)
35+
36+
add_subdirectory(src)
37+
add_subdirectory(test)
38+
39+
if(NOT MINGW)
40+
install(TARGETS overlayaz DESTINATION bin)
41+
install(FILES overlayaz.desktop DESTINATION share/applications)
42+
install(DIRECTORY icons/ DESTINATION share/icons/hicolor
43+
PATTERN "INFO" EXCLUDE
44+
PATTERN "overlayaz.ico" EXCLUDE)
45+
install(CODE "execute_process(COMMAND gtk-update-icon-cache /usr/share/icons/hicolor)")
46+
endif()

LICENSE

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
overlayaz
2+
=======
3+
4+
Photo visibility analysis software.
5+
6+
![Screenshot](/overlayaz.png?raw=true)
7+
8+
![Screenshot](/overlayaz-map.png?raw=true)
9+
10+
Copyright (C) 2020-2022 Konrad Kosmatka
11+
12+
https://fmdx.pl/overlayaz/
13+
14+
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
15+
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16+
17+
# Build
18+
In order to build overlayaz you will need:
19+
- CMake
20+
- C compiler
21+
- GTK+ 3
22+
- SQLite
23+
- json-c
24+
- osm-gps-map
25+
26+
Once you have all the necessary dependencies, you can use scripts available in the `build` directory.
27+
28+
# Installation
29+
After a successful build, just use:
30+
```sh
31+
$ sudo make install
32+
```
33+
in the `build` directory.

build/build-debug.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="/usr" ..
3+
make

build/build-mingw-debug.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
3+
make

build/build-mingw.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release ..
3+
make

build/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" ..
3+
make

example/dylewska.jpg

5.01 MB
Loading

0 commit comments

Comments
 (0)