mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-23 06:02:48 +02:00
eeshow/: move parsing and high-level rendering to kicad/
This commit is contained in:
parent
097192b7b4
commit
e0c1e533f4
@ -11,11 +11,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
NAME = eeshow
|
NAME = eeshow
|
||||||
OBJS = main.o sch-parse.o sch-render.o lib-parse.o lib-render.o \
|
OBJS = main.o \
|
||||||
|
kicad/sch-parse.o kicad/sch-render.o kicad/lib-parse.o \
|
||||||
|
kicad/lib-render.o kicad/dwg.o \
|
||||||
gui/gui.o gui/over.o gui/style.o gui/aoi.o gui/fmt-pango.o \
|
gui/gui.o gui/over.o gui/style.o gui/aoi.o gui/fmt-pango.o \
|
||||||
file/file.o file/git-util.o file/git-file.o file/git-hist.o \
|
file/file.o file/git-util.o file/git-file.o file/git-hist.o \
|
||||||
delta.o \
|
delta.o \
|
||||||
style.o fig.o record.o cro.o diff.o gfx.o dwg.o text.o misc.o diag.o
|
style.o fig.o record.o cro.o diff.o gfx.o text.o misc.o diag.o
|
||||||
|
|
||||||
CFLAGS = -g -Wall -Wextra -Wno-unused-parameter -Wshadow \
|
CFLAGS = -g -Wall -Wextra -Wno-unused-parameter -Wshadow \
|
||||||
-Wmissing-prototypes -Wmissing-declarations \
|
-Wmissing-prototypes -Wmissing-declarations \
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "lib.h"
|
#include "kicad/lib.h"
|
||||||
#include "sch.h"
|
#include "kicad/sch.h"
|
||||||
#include "delta.h"
|
#include "delta.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#ifndef DELTA_H
|
#ifndef DELTA_H
|
||||||
#define DELTA_H
|
#define DELTA_H
|
||||||
|
|
||||||
#include "sch.h"
|
#include "kicad/sch.h"
|
||||||
|
|
||||||
|
|
||||||
bool sheet_eq(const struct sheet *a, const struct sheet *b);
|
bool sheet_eq(const struct sheet *a, const struct sheet *b);
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "cro.h"
|
#include "cro.h"
|
||||||
#include "file/file.h"
|
#include "file/file.h"
|
||||||
#include "sch.h"
|
#include "kicad/sch.h"
|
||||||
#include "lib.h"
|
#include "kicad/lib.h"
|
||||||
#include "record.h"
|
#include "record.h"
|
||||||
#include "diff.h"
|
#include "diff.h"
|
||||||
|
|
||||||
|
@ -34,10 +34,11 @@
|
|||||||
#include "cro.h"
|
#include "cro.h"
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
#include "file/git-hist.h"
|
#include "file/git-hist.h"
|
||||||
#include "sch.h"
|
#include "kicad/lib.h"
|
||||||
|
#include "kicad/sch.h"
|
||||||
#include "delta.h"
|
#include "delta.h"
|
||||||
#include "diff.h"
|
#include "diff.h"
|
||||||
#include "dwg.h"
|
#include "kicad/dwg.h"
|
||||||
#include "gui/fmt-pango.h"
|
#include "gui/fmt-pango.h"
|
||||||
#include "gui/aoi.h"
|
#include "gui/aoi.h"
|
||||||
#include "gui/style.h"
|
#include "gui/style.h"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* dwg.c - Complex drawing functions
|
* kicad/dwg.c - Complex drawing functions for KiCad items
|
||||||
*
|
*
|
||||||
* Written 2016 by Werner Almesberger
|
* Written 2016 by Werner Almesberger
|
||||||
* Copyright 2016 by Werner Almesberger
|
* Copyright 2016 by Werner Almesberger
|
||||||
@ -22,7 +22,7 @@
|
|||||||
#include "style.h"
|
#include "style.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
#include "dwg.h"
|
#include "kicad/dwg.h"
|
||||||
|
|
||||||
|
|
||||||
/* ----- Helper functions -------------------------------------------------- */
|
/* ----- Helper functions -------------------------------------------------- */
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* dwg.h - Complex drawing functions
|
* kicad/dwg.h - Complex drawing functions for KiCad items
|
||||||
*
|
*
|
||||||
* Written 2016 by Werner Almesberger
|
* Written 2016 by Werner Almesberger
|
||||||
* Copyright 2016 by Werner Almesberger
|
* Copyright 2016 by Werner Almesberger
|
||||||
@ -11,8 +11,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef DWG_H
|
#ifndef KICAD_DWG_H
|
||||||
#define DWG_H
|
#define KICAD_DWG_H
|
||||||
|
|
||||||
#include "fig.h"
|
#include "fig.h"
|
||||||
|
|
||||||
@ -48,4 +48,4 @@ void dwg_line(int sx, int sy, int ex, int ey);
|
|||||||
void dwg_wire(int sx, int sy, int ex, int ey);
|
void dwg_wire(int sx, int sy, int ex, int ey);
|
||||||
void dwg_bus(int sx, int sy, int ex, int ey);
|
void dwg_bus(int sx, int sy, int ex, int ey);
|
||||||
|
|
||||||
#endif /* !DWG_H */
|
#endif /* !KICAD_DWG_H */
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* lib.c - Parse Eeschema .lib file
|
* kicad/lib.c - Parse Eeschema .lib file
|
||||||
*
|
*
|
||||||
* Written 2016 by Werner Almesberger
|
* Written 2016 by Werner Almesberger
|
||||||
* Copyright 2016 by Werner Almesberger
|
* Copyright 2016 by Werner Almesberger
|
||||||
@ -19,7 +19,7 @@
|
|||||||
#include "diag.h"
|
#include "diag.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "file/file.h"
|
#include "file/file.h"
|
||||||
#include "lib.h"
|
#include "kicad/lib.h"
|
||||||
|
|
||||||
|
|
||||||
/* ----- Text -------------------------------------------------------------- */
|
/* ----- Text -------------------------------------------------------------- */
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* lib.c - Render component from library
|
* kicad/lib-render.c - Render component from library
|
||||||
*
|
*
|
||||||
* Written 2016 by Werner Almesberger
|
* Written 2016 by Werner Almesberger
|
||||||
* Copyright 2016 by Werner Almesberger
|
* Copyright 2016 by Werner Almesberger
|
||||||
@ -21,8 +21,8 @@
|
|||||||
#include "style.h"
|
#include "style.h"
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "sch.h"
|
#include "kicad/sch.h"
|
||||||
#include "lib.h"
|
#include "kicad/lib.h"
|
||||||
|
|
||||||
|
|
||||||
/* ----- Drawing ----------------------------------------------------------- */
|
/* ----- Drawing ----------------------------------------------------------- */
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* lib.h - Parse Eeschema .lib file
|
* kicad/lib.h - Parse Eeschema .lib file
|
||||||
*
|
*
|
||||||
* Written 2016 by Werner Almesberger
|
* Written 2016 by Werner Almesberger
|
||||||
* Copyright 2016 by Werner Almesberger
|
* Copyright 2016 by Werner Almesberger
|
||||||
@ -11,8 +11,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef LIB_H
|
#ifndef KICAD_LIB_H
|
||||||
#define LIB_H
|
#define KICAD_LIB_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
@ -131,4 +131,4 @@ bool lib_parse(struct lib *lib, const char *name, const struct file *related);
|
|||||||
void lib_init(struct lib *lib);
|
void lib_init(struct lib *lib);
|
||||||
void lib_free(struct lib *lib);
|
void lib_free(struct lib *lib);
|
||||||
|
|
||||||
#endif /* !LIB_H */
|
#endif /* !KICAD_LIB_H */
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* sch-parse.c - Parse Eeschema .sch file
|
* kicad/sch-parse.c - Parse Eeschema .sch file
|
||||||
*
|
*
|
||||||
* Written 2016 by Werner Almesberger
|
* Written 2016 by Werner Almesberger
|
||||||
* Copyright 2016 by Werner Almesberger
|
* Copyright 2016 by Werner Almesberger
|
||||||
@ -21,10 +21,10 @@
|
|||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "diag.h"
|
#include "diag.h"
|
||||||
#include "dwg.h"
|
#include "kicad/dwg.h"
|
||||||
#include "file/file.h"
|
#include "file/file.h"
|
||||||
#include "lib.h"
|
#include "kicad/lib.h"
|
||||||
#include "sch.h"
|
#include "kicad/sch.h"
|
||||||
|
|
||||||
|
|
||||||
/* ----- (Global) Labels --------------------------------------------------- */
|
/* ----- (Global) Labels --------------------------------------------------- */
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* sch-render.c - Render schematics
|
* kicad/sch-render.c - Render schematics
|
||||||
*
|
*
|
||||||
* Written 2016 by Werner Almesberger
|
* Written 2016 by Werner Almesberger
|
||||||
* Copyright 2016 by Werner Almesberger
|
* Copyright 2016 by Werner Almesberger
|
||||||
@ -18,9 +18,9 @@
|
|||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "style.h"
|
#include "style.h"
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
#include "dwg.h"
|
#include "kicad/dwg.h"
|
||||||
#include "lib.h"
|
#include "kicad/lib.h"
|
||||||
#include "sch.h"
|
#include "kicad/sch.h"
|
||||||
|
|
||||||
|
|
||||||
/* ----- Rendering --------------------------------------------------------- */
|
/* ----- Rendering --------------------------------------------------------- */
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* sch.h - Parse Eeschema .sch file
|
* kicad/sch.h - Parse Eeschema .sch file
|
||||||
*
|
*
|
||||||
* Written 2016 by Werner Almesberger
|
* Written 2016 by Werner Almesberger
|
||||||
* Copyright 2016 by Werner Almesberger
|
* Copyright 2016 by Werner Almesberger
|
||||||
@ -11,15 +11,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef SCH_H
|
#ifndef KICAD_SCH_H
|
||||||
#define SCH_H
|
#define KICAD_SCH_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "dwg.h"
|
#include "dwg.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "file/file.h"
|
#include "file/file.h"
|
||||||
#include "lib.h"
|
#include "kicad/lib.h"
|
||||||
|
|
||||||
|
|
||||||
enum sch_state {
|
enum sch_state {
|
||||||
@ -135,4 +135,4 @@ bool sch_parse(struct sch_ctx *ctx, struct file *file, const struct lib *lib,
|
|||||||
void sch_init(struct sch_ctx *ctx, bool recurse);
|
void sch_init(struct sch_ctx *ctx, bool recurse);
|
||||||
void sch_free(struct sch_ctx *ctx);
|
void sch_free(struct sch_ctx *ctx);
|
||||||
|
|
||||||
#endif /* !SCH_H */
|
#endif /* !KICAD_SCH_H */
|
@ -26,8 +26,8 @@
|
|||||||
#include "diff.h"
|
#include "diff.h"
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
#include "file/file.h"
|
#include "file/file.h"
|
||||||
#include "lib.h"
|
#include "kicad/lib.h"
|
||||||
#include "sch.h"
|
#include "kicad/sch.h"
|
||||||
#include "gui/fmt-pango.h"
|
#include "gui/fmt-pango.h"
|
||||||
#include "file/git-hist.h"
|
#include "file/git-hist.h"
|
||||||
#include "gui/gui.h"
|
#include "gui/gui.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user