Revert "WIP: produce portable builds"

This reverts commit 972dd480fc.
This commit is contained in:
William Brawner 2020-07-30 11:06:01 -07:00
parent 2042ac298a
commit ce7f62b519
4 changed files with 11 additions and 16 deletions

View file

@ -1,21 +1,12 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.7)
project(
feader
)
add_library(
feader STATIC
add_executable(
feader-cli
src/feader.c
)
add_library(
sqlite3 STATIC
src/sqlite/sqlite3.c
feader SHARED
src/feader.c
)
add_library(
yxml STATIC
src/yxml/yxml.c
)
target_link_libraries(
feader
sqlite3
yxml
)

View file

@ -1,5 +1,4 @@
#include "feader.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sqlite/sqlite3.h"

View file

@ -35,6 +35,10 @@ typedef struct {
char *filter_reject;
} feed;
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 get_xml_ptr(xml* x, char* url);
@ -50,3 +54,4 @@ void fead_xml(char* url);
void setup_database(sqlite3* handle);
void close_database(sqlite3* handle);

View file

@ -22,7 +22,7 @@
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "yxml.h"
#include <yxml.h>
#include <string.h>
typedef enum {