Skip to content

Commit d6ebf8c

Browse files
committed
Rename libnativeapi to nativeapi throughout project
1 parent 3bf3e25 commit d6ebf8c

File tree

8 files changed

+24
-23
lines changed

8 files changed

+24
-23
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.10)
22

3-
project(libnativeapi_library VERSION 0.0.1 LANGUAGES CXX C)
3+
project(nativeapi_library VERSION 0.0.1 LANGUAGES CXX C)
44

55
# Add library subdirectory
66
add_subdirectory(src)

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# libnativeapi
1+
# nativeapi
22

33
A cross-platform C++ library providing unified access to native system APIs.
44

@@ -42,9 +42,10 @@ sudo dnf install gtk3-devel
4242

4343
```bash
4444
# Clone the repository
45-
git clone https://github.com/leanflutter/libnativeapi.git
46-
cd libnativeapi
47-
45+
git clone https://github.com/libnativeapi/nativeapi.git
46+
cd nativeapi
47+
```
48+
```bash
4849
# Create build directory
4950
mkdir build
5051
cd build
@@ -56,9 +57,9 @@ cmake --build . --config Release
5657

5758
## Language Bindings
5859

59-
Currently available language bindings for libnativeapi:
60+
Currently available language bindings for nativeapi:
6061

61-
- [nativeapi-flutter](https://github.com/leanflutter/nativeapi-flutter) - Flutter bindings
62+
- [nativeapi-flutter](https://github.com/libnativeapi/nativeapi-flutter) - Flutter bindings
6263
- [nativeapi-swift](https://github.com/leanflutter/nativeapi-swift) - Swift bindings
6364

6465
These bindings provide native system API access while preserving the library's core functionality.

examples/display_example/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ add_executable(display_example
1212
)
1313

1414
# Link main library
15-
target_link_libraries(display_example PRIVATE libnativeapi)
15+
target_link_libraries(display_example PRIVATE nativeapi)
1616

1717
# Set example program properties
1818
set_target_properties(display_example PROPERTIES
@@ -21,7 +21,7 @@ set_target_properties(display_example PROPERTIES
2121

2222
# Set example program compile options (macOS only)
2323
if(APPLE)
24-
set_source_files_properties("main.cpp"
24+
set_source_files_properties("main.cpp"
2525
PROPERTIES
2626
COMPILE_FLAGS "-x objective-c++"
2727
)

examples/keyboard_example/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
1313
add_executable(keyboard_example main.cpp)
1414

1515
# Link with the native API library
16-
target_link_libraries(keyboard_example libnativeapi)
16+
target_link_libraries(keyboard_example nativeapi)
1717

1818
# Set include directories to find the C API header
19-
target_include_directories(keyboard_example PRIVATE ../../src)
19+
target_include_directories(keyboard_example PRIVATE ../../src)

examples/tray_icon_example/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ add_executable(tray_icon_example
1212
)
1313

1414
# Link main library
15-
target_link_libraries(tray_icon_example PRIVATE libnativeapi)
15+
target_link_libraries(tray_icon_example PRIVATE nativeapi)
1616

1717
# Set example program properties
1818
set_target_properties(tray_icon_example PROPERTIES

examples/tray_menu_c_example/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ add_executable(tray_menu_c_example
1212
)
1313

1414
# Link main library
15-
target_link_libraries(tray_menu_c_example PRIVATE libnativeapi)
15+
target_link_libraries(tray_menu_c_example PRIVATE nativeapi)
1616

1717
# Set example program properties
1818
set_target_properties(tray_menu_c_example PROPERTIES

examples/window_example/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ add_executable(window_example
1212
)
1313

1414
# Link main library
15-
target_link_libraries(window_example PRIVATE libnativeapi)
15+
target_link_libraries(window_example PRIVATE nativeapi)
1616

1717
# Set example program properties
1818
set_target_properties(window_example PROPERTIES
@@ -21,7 +21,7 @@ set_target_properties(window_example PROPERTIES
2121

2222
# Set example program compile options (macOS only)
2323
if(APPLE)
24-
set_source_files_properties("main.cpp"
24+
set_source_files_properties("main.cpp"
2525
PROPERTIES
2626
COMPILE_FLAGS "-x objective-c++"
2727
)

src/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# the plugin to fail to compile for some customers of the plugin.
44
cmake_minimum_required(VERSION 3.10)
55

6-
project(libnativeapi VERSION 0.0.1 LANGUAGES CXX)
6+
project(nativeapi VERSION 0.0.1 LANGUAGES CXX)
77

88
# Enable Objective-C++
99
if(APPLE)
@@ -38,31 +38,31 @@ else()
3838
endif()
3939

4040
# Add library target
41-
add_library(libnativeapi STATIC
41+
add_library(nativeapi STATIC
4242
${COMMON_SOURCES}
4343
${PLATFORM_SOURCES}
4444
${CAPI_SOURCES}
4545
)
4646

4747
# Set library properties
48-
set_target_properties(libnativeapi PROPERTIES
48+
set_target_properties(nativeapi PROPERTIES
4949
PUBLIC_HEADER "${CMAKE_CURRENT_SOURCE_DIR}/../include/**/*.h"
5050
)
5151

5252
# Set library include directories
53-
target_include_directories(libnativeapi PUBLIC
53+
target_include_directories(nativeapi PUBLIC
5454
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
5555
$<INSTALL_INTERFACE:include>
5656
)
5757

5858
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
59-
target_include_directories(libnativeapi PUBLIC ${GTK_INCLUDE_DIRS})
59+
target_include_directories(nativeapi PUBLIC ${GTK_INCLUDE_DIRS})
6060
endif ()
6161

6262
# Link required frameworks and libraries
6363
if(APPLE)
64-
target_link_libraries(libnativeapi PUBLIC "-framework Cocoa")
65-
target_compile_options(libnativeapi PRIVATE "-x" "objective-c++")
64+
target_link_libraries(nativeapi PUBLIC "-framework Cocoa")
65+
target_compile_options(nativeapi PRIVATE "-x" "objective-c++")
6666
elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
67-
target_link_libraries(libnativeapi PUBLIC PkgConfig::GTK PkgConfig::X11 PkgConfig::XI pthread)
67+
target_link_libraries(nativeapi PUBLIC PkgConfig::GTK PkgConfig::X11 PkgConfig::XI pthread)
6868
endif ()

0 commit comments

Comments
 (0)