Skip to content

Commit

Permalink
Merge pull request #47786 from fastly/jkarneges/bininstalls
Browse files Browse the repository at this point in the history
install bins from pushpin.pro and remove unused lib.pri
  • Loading branch information
jkarneges authored Nov 17, 2023
2 parents c269870 + bdb33e8 commit 3b0cc44
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 28 deletions.
20 changes: 20 additions & 0 deletions src/pushpin/pushpin.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ TEMPLATE = aux

include($$OUT_PWD/../../conf.pri)

root_dir = $$PWD/../..
bin_dir = $$root_dir/bin

# generate pushpin.conf for installation

pushpin_conf_inst.target = pushpin.conf.inst
Expand All @@ -11,6 +14,23 @@ pushpin_conf_inst.depends = ../../examples/config/pushpin.conf
QMAKE_EXTRA_TARGETS += pushpin_conf_inst
PRE_TARGETDEPS += pushpin.conf.inst

# install bin files

unix:!isEmpty(BINDIR) {
binfiles.path = $$BINDIR
binfiles.files = \
$$bin_dir/condure \
$$bin_dir/m2adapter \
$$bin_dir/pushpin-proxy \
$$bin_dir/pushpin-handler \
$$root_dir/pushpin-legacy \
$$root_dir/pushpin \
$$bin_dir/pushpin-publish
binfiles.CONFIG += no_check_exist executable

INSTALLS += binfiles
}

# install lib files

libfiles.path = $$LIBDIR
Expand Down
12 changes: 0 additions & 12 deletions src/rust/lib.pri

This file was deleted.

17 changes: 1 addition & 16 deletions src/rust/rust.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ CONFIG -= debug_and_release debug

include($$OUT_PWD/../../conf.pri)

bin_dir = $$PWD/../../bin
root_dir = $$PWD/../..
bin_dir = $$root_dir/bin

CONFIG(debug, debug|release) {
cargo_flags =
Expand Down Expand Up @@ -110,18 +110,3 @@ PRE_TARGETDEPS += \
$$root_dir/pushpin-legacy \
$$root_dir/pushpin \
$$bin_dir/pushpin-publish

unix:!isEmpty(BINDIR) {
binfiles.path = $$BINDIR
binfiles.files = \
$$bin_dir/condure \
$$bin_dir/m2adapter \
$$bin_dir/pushpin-proxy \
$$bin_dir/pushpin-handler \
$$root_dir/pushpin-legacy \
$$root_dir/pushpin \
$$bin_dir/pushpin-publish
binfiles.CONFIG += no_check_exist executable

INSTALLS += binfiles
}

0 comments on commit 3b0cc44

Please sign in to comment.