Skip to content

Commit

Permalink
API: moving into a more traditional structure, doxigen config file up…
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
jeras committed Jul 7, 2017
1 parent d41c574 commit 76702c4
Show file tree
Hide file tree
Showing 35 changed files with 10 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $(INSTALL_DIR):
# API libraries
################################################################################

LIBRP_DIR = api/rpbase
LIBRP_DIR = api
LIBRP2_DIR = api2
LIBRPLCR_DIR = Applications/api/rpApplications/lcr_meter
LIBRPAPP_DIR = Applications/api/rpApplications
Expand Down
3 changes: 1 addition & 2 deletions Test/calibrate/calibrateApp2.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>

#include "redpitaya/rp.h"
#include "../../api/rpbase/src/common.h"
#include "../../api/src/common.h"


void waitForUser ( void )
Expand Down
5 changes: 2 additions & 3 deletions api/rpbase/doc/conf/doxyfile.inc → api/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "Base Library"
PROJECT_NUMBER = 1.0
PROJECT_BRIEF =
PROJECT_LOGO = ../doc/img/redpitaya-logo.png
OUTPUT_DIRECTORY = ../doc/doxygen
OUTPUT_DIRECTORY = doxygen
CREATE_SUBDIRS = NO
OUTPUT_LANGUAGE = English
BRIEF_MEMBER_DESC = YES
Expand Down Expand Up @@ -107,7 +106,7 @@ WARN_LOGFILE =
#---------------------------------------------------------------------------
# Configuration options related to the input files
#---------------------------------------------------------------------------
INPUT = rp.h
INPUT = include/redpitaya/rp.h
INPUT_ENCODING = UTF-8
FILE_PATTERNS = *.c \
*.cc \
Expand Down
2 changes: 1 addition & 1 deletion api/rpbase/Makefile → api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# REVISION ?= devbuild
# VER:=$(shell cat info/info.json | grep version | sed -e 's/.*:\ *\"//' | sed -e 's/-.*//')

LIBRP=../lib/librp.so
LIBRP=lib/librp.so

all: $(LIBRP)

Expand Down
23 changes: 0 additions & 23 deletions api/rpbase/doc/Makefile

This file was deleted.

Binary file removed api/rpbase/doc/img/redpitaya-logo.png
Binary file not shown.
6 changes: 3 additions & 3 deletions api/rpbase/src/Makefile → api/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ OBJEXT = .o
OBJECTS_DIR = ../obj
INSTALL_DIR ?= .
SOURCE_DIR = .
OUTPUT_DIR = ../../lib
OUTPUT_DIR = ../lib

SHARED_LIB=$(OUTPUT_DIR)/librp.so
STATIC_LIB=$(OUTPUT_DIR)/librp.a
Expand All @@ -52,7 +52,7 @@ OBJS = $(patsubst %$(OBJEXT), $(OBJECTS_DIR)/%$(OBJEXT), $(OBJECTS))
# GCC compiling & linking flags
CFLAGS = -std=gnu99 -Wall -Werror -fPIC -Ikiss_fft -Os -s
CFLAGS += -DVERSION=$(VERSION) -DREVISION=$(REVISION)
CFLAGS += -I../../include
CFLAGS += -I../include
LDFLAGS=-shared -Wl,--version-script=exportmap

# Additional libraries which needs to be dynamically linked to the executable
Expand Down Expand Up @@ -96,4 +96,4 @@ install:
mkdir -p $(INSTALL_DIR)/lib
mkdir -p $(INSTALL_DIR)/include
cp $(TARGET) $(INSTALL_DIR)/lib
cp -r ../../include/redpitaya $(INSTALL_DIR)/include
cp -r ../include/redpitaya $(INSTALL_DIR)/include
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scpi-server/src/apin.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "common.h"
#include "apin.h"
#include "scpi/parser.h"
#include "../../api/rpbase/src/common.h"
#include "../../api/src/common.h"

/* Apin choice def */
const scpi_choice_def_t scpi_RpApin[] = {
Expand Down
2 changes: 1 addition & 1 deletion scpi-server/src/generate.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <math.h>

#include "generate.h"
#include "../../api/rpbase/src/generate.h"
#include "../../api/src/generate.h"

#include "common.h"
#include "scpi/parser.h"
Expand Down

0 comments on commit 76702c4

Please sign in to comment.