Skip to content

Commit

Permalink
Modularise fluxsource.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Oct 15, 2024
1 parent c42e73f commit ecd8077
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
15 changes: 1 addition & 14 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,6 @@
"./lib/decoders/fluxdecoder.cc",
"./lib/decoders/fmmfm.cc",
"./lib/encoders/encoders.cc",
"./lib/fluxsource/a2rfluxsource.cc",
"./lib/fluxsource/cwffluxsource.cc",
"./lib/fluxsource/dmkfluxsource.cc",
"./lib/fluxsource/erasefluxsource.cc",
"./lib/fluxsource/fl2fluxsource.cc",
"./lib/fluxsource/fluxsource.cc",
"./lib/fluxsource/flxfluxsource.cc",
"./lib/fluxsource/hardwarefluxsource.cc",
"./lib/fluxsource/kryofluxfluxsource.cc",
"./lib/fluxsource/memoryfluxsource.cc",
"./lib/fluxsource/scpfluxsource.cc",
"./lib/fluxsource/testpatternfluxsource.cc",
"./lib/imagereader/d64imagereader.cc",
"./lib/imagereader/d88imagereader.cc",
"./lib/imagereader/dimimagereader.cc",
Expand Down Expand Up @@ -126,7 +114,6 @@
"lib/decoders/fluxdecoder.h": "./lib/decoders/fluxdecoder.h",
"lib/decoders/rawbits.h": "./lib/decoders/rawbits.h",
"lib/encoders/encoders.h": "./lib/encoders/encoders.h",
"lib/fluxsource/fluxsource.h": "lib/fluxsource/fluxsource.h",
"lib/imagereader/imagereader.h": "./lib/imagereader/imagereader.h",
"lib/imagewriter/imagewriter.h": "./lib/imagewriter/imagewriter.h",
"lib/readerwriter.h": "./lib/readerwriter.h",
Expand All @@ -145,7 +132,7 @@
"lib/data",
"lib/external",
"lib/fluxsink",
"lib/fluxsource+proto_lib",
"lib/fluxsource",
],
)

Expand Down
21 changes: 21 additions & 0 deletions lib/fluxsource/build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from build.protobuf import proto, protocc
from build.c import cxxlibrary

proto(name="proto", srcs=["./fluxsource.proto"], deps=["lib+common_proto"])

Expand All @@ -7,3 +8,23 @@
srcs=[".+proto"],
deps=["lib+common_proto", "lib+common_proto_lib"],
)

cxxlibrary(
name="fluxsource",
srcs=[
"./a2rfluxsource.cc",
"./cwffluxsource.cc",
"./dmkfluxsource.cc",
"./erasefluxsource.cc",
"./fl2fluxsource.cc",
"./fluxsource.cc",
"./flxfluxsource.cc",
"./hardwarefluxsource.cc",
"./kryofluxfluxsource.cc",
"./memoryfluxsource.cc",
"./scpfluxsource.cc",
"./testpatternfluxsource.cc",
],
hdrs={"lib/fluxsource/fluxsource.h": "./fluxsource.h"},
deps=["lib/core","lib/data","lib/external","lib/usb",".+proto_lib"]
)
1 change: 0 additions & 1 deletion lib/fluxsource/hardwarefluxsource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "lib/usb/usb.h"
#include "lib/fluxsource/fluxsource.h"
#include "lib/fluxsource/fluxsource.pb.h"
#include "lib/readerwriter.h"

class HardwareFluxSource : public FluxSource
{
Expand Down
2 changes: 0 additions & 2 deletions src/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"+fmt_lib",
"+lib",
"+protobuf_lib",
"+protobuf_lib",
"+protocol",
"+z_lib",
"dep/adflib",
Expand All @@ -46,7 +45,6 @@
"lib/core",
"lib/data",
"lib/external",
"lib/fluxsource+proto_lib",
"lib/vfs",
"src/formats",
],
Expand Down
1 change: 0 additions & 1 deletion src/gui/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"lib/data",
"lib/vfs",
"lib/config",
"lib/fluxsource+proto_lib",
"src/formats",
"src/gui/drivetypes",
"+z_lib",
Expand Down

0 comments on commit ecd8077

Please sign in to comment.