WIP: produce portable builds
This commit is contained in:
parent
a19692849a
commit
972dd480fc
4 changed files with 16 additions and 10 deletions
|
@ -1,12 +1,21 @@
|
||||||
cmake_minimum_required(VERSION 3.7)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
project(
|
project(
|
||||||
feader
|
feader
|
||||||
)
|
)
|
||||||
add_executable(
|
add_library(
|
||||||
feader-cli
|
feader STATIC
|
||||||
src/feader.c
|
src/feader.c
|
||||||
)
|
)
|
||||||
add_library(
|
add_library(
|
||||||
feader SHARED
|
sqlite3 STATIC
|
||||||
src/feader.c
|
src/sqlite/sqlite3.c
|
||||||
)
|
)
|
||||||
|
add_library(
|
||||||
|
yxml STATIC
|
||||||
|
src/yxml/yxml.c
|
||||||
|
)
|
||||||
|
target_link_libraries(
|
||||||
|
feader
|
||||||
|
sqlite3
|
||||||
|
yxml
|
||||||
|
)
|
|
@ -1,4 +1,5 @@
|
||||||
#include "feader.h"
|
#include "feader.h"
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "sqlite/sqlite3.h"
|
#include "sqlite/sqlite3.h"
|
||||||
|
|
|
@ -9,10 +9,6 @@ typedef struct {
|
||||||
char* errBuf;
|
char* errBuf;
|
||||||
} xml;
|
} xml;
|
||||||
|
|
||||||
size_t my_write_callback(char *ptr, size_t size, size_t nmemb, xml *x);
|
|
||||||
|
|
||||||
size_t get_xml(xml *x);
|
|
||||||
|
|
||||||
void parse_xml_items(xml *x);
|
void parse_xml_items(xml *x);
|
||||||
|
|
||||||
void get_xml_ptr(xml* x, char* url);
|
void get_xml_ptr(xml* x, char* url);
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <yxml.h>
|
#include "yxml.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
Loading…
Reference in a new issue