Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ cmake_install.cmake
/3rdparty/usr/
/bin
/tests/Testing
/bii
22 changes: 21 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@ project(libappc CXX)
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wextra -pedantic")
set(CMAKE_CXX_FLAGS_DISTRIBUTION "-O3")

######

if(BIICODE)
ADD_BIICODE_TARGETS()

string(REPLACE " " ";" TARGET_CXX_FLAGS ${CMAKE_CXX_FLAGS})
string(REPLACE " " ";" TARGET_CXX_FLAGS_DISTRIBUTION ${CMAKE_CXX_FLAGS_DISTRIBUTION})

target_include_directories(${BII_BLOCK_TARGET} INTERFACE src)
target_compile_options(${BII_BLOCK_TARGET} INTERFACE ${TARGET_CXX_FLAGS}
$<$<CONFIG:distribution>:${CMAKE_CXX_FLAGS_DISTRIBUTION}>)

find_library(LIB_ARCHIVE NAMES archive)
target_link_libraries(${BII_BLOCK_TARGET} INTERFACE ${LIB_ARCHIVE})

return()
endif()

######

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
Expand All @@ -28,4 +48,4 @@ add_subdirectory(tests)

add_subdirectory(src)

######
######
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# libappc

[![Build Status](https://travis-ci.org/cdaylward/libappc.svg?branch=master)](https://travis-ci.org/cdaylward/libappc)
[![Build Status](https://webapi.biicode.com/v1/badges/manu343726/manu343726/libappc/master)](https://www.biicode.com/manu343726/libappc)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/manu343726/cdaylward/ ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If do you want to own the libappc block, yep. Create a cdaylward account, change all references to my account, and don't forget to change parent block (See note bellow).


## Overview

Expand All @@ -19,6 +20,11 @@ Requires libarchive, libcurl, and functional std::regex (If using gcc, >= 4.9)
2. Run the tests: `./test.sh`
3. Build the examples: `./build.sh`

### With [biicode](https://www.biicode.com)

1. Run `bii buzz` command
2. Run examples on `bin/` directory

## Status

Early, early (like really early) development. Many pieces are incomplete and require tests, build
Expand Down
18 changes: 18 additions & 0 deletions biicode.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

[paths]
# Local directories to look for headers
# (bii needs to look on your sources to find deps automatically)
src/

[includes]
# Map any curl include to biicode's curl block
curl/*.h: lasote/curl/include

# Map any gtest include to biicode's gtest block
gtest/*.h: google/gtest/include

[requirements]
google/gtest: 10
lasote/curl: 2
[parent]
manu343726/libappc: 0
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[parent] references the latest version available on the cloud, that is, the version your current local block comes from. When publishing, that version number (The 0 here) may change during a release, or not if you want to just fix a bug in the current version. See bii publish command in our docs.

If there's no block in the cloud available yet, there's no parent (You are working on a new block), so that number should be -1.

Ask me if you have any doubts.