Improve workspace to include jetbrains run-configurations
This commit is contained in:
parent
c3659a96b9
commit
3ce0dc2266
9 changed files with 132 additions and 15 deletions
19
.idea/runConfigurations/Run_controller.xml
Normal file
19
.idea/runConfigurations/Run_controller.xml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="Run controller" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
|
||||||
|
<option name="command" value="run" />
|
||||||
|
<option name="workingDirectory" value="file://$PROJECT_DIR$/controller" />
|
||||||
|
<envs />
|
||||||
|
<option name="emulateTerminal" value="true" />
|
||||||
|
<option name="channel" value="DEFAULT" />
|
||||||
|
<option name="requiredFeatures" value="true" />
|
||||||
|
<option name="allFeatures" value="false" />
|
||||||
|
<option name="withSudo" value="false" />
|
||||||
|
<option name="buildTarget" value="REMOTE" />
|
||||||
|
<option name="backtrace" value="SHORT" />
|
||||||
|
<option name="isRedirectInput" value="false" />
|
||||||
|
<option name="redirectInputPath" value="" />
|
||||||
|
<method v="2">
|
||||||
|
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
21
.idea/runConfigurations/Run_controller2.xml
Normal file
21
.idea/runConfigurations/Run_controller2.xml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="Run controller2" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
|
||||||
|
<option name="command" value="run" />
|
||||||
|
<option name="workingDirectory" value="file://$PROJECT_DIR$/controller" />
|
||||||
|
<envs>
|
||||||
|
<env name="EMGAUWA_CONTROLLER__DATABASE" value="sqlite://emgauwa-controller2.sqlite" />
|
||||||
|
</envs>
|
||||||
|
<option name="emulateTerminal" value="true" />
|
||||||
|
<option name="channel" value="DEFAULT" />
|
||||||
|
<option name="requiredFeatures" value="true" />
|
||||||
|
<option name="allFeatures" value="false" />
|
||||||
|
<option name="withSudo" value="false" />
|
||||||
|
<option name="buildTarget" value="REMOTE" />
|
||||||
|
<option name="backtrace" value="SHORT" />
|
||||||
|
<option name="isRedirectInput" value="false" />
|
||||||
|
<option name="redirectInputPath" value="" />
|
||||||
|
<method v="2">
|
||||||
|
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
19
.idea/runConfigurations/Run_core.xml
Normal file
19
.idea/runConfigurations/Run_core.xml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="Run core" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
|
||||||
|
<option name="command" value="run" />
|
||||||
|
<option name="workingDirectory" value="file://$PROJECT_DIR$/core" />
|
||||||
|
<envs />
|
||||||
|
<option name="emulateTerminal" value="true" />
|
||||||
|
<option name="channel" value="DEFAULT" />
|
||||||
|
<option name="requiredFeatures" value="true" />
|
||||||
|
<option name="allFeatures" value="false" />
|
||||||
|
<option name="withSudo" value="false" />
|
||||||
|
<option name="buildTarget" value="REMOTE" />
|
||||||
|
<option name="backtrace" value="SHORT" />
|
||||||
|
<option name="isRedirectInput" value="false" />
|
||||||
|
<option name="redirectInputPath" value="" />
|
||||||
|
<method v="2">
|
||||||
|
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
8
.idea/runConfigurations/clippy_all.xml
Normal file
8
.idea/runConfigurations/clippy_all.xml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="clippy all" type="CompoundRunConfigurationType">
|
||||||
|
<toRun name="clippy common" type="CargoCommandRunConfiguration" />
|
||||||
|
<toRun name="clippy controller" type="CargoCommandRunConfiguration" />
|
||||||
|
<toRun name="clippy core" type="CargoCommandRunConfiguration" />
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
</component>
|
19
.idea/runConfigurations/clippy_common.xml
Normal file
19
.idea/runConfigurations/clippy_common.xml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="clippy common" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
|
||||||
|
<option name="command" value="clippy" />
|
||||||
|
<option name="workingDirectory" value="file://$PROJECT_DIR$/common" />
|
||||||
|
<envs />
|
||||||
|
<option name="emulateTerminal" value="true" />
|
||||||
|
<option name="channel" value="DEFAULT" />
|
||||||
|
<option name="requiredFeatures" value="true" />
|
||||||
|
<option name="allFeatures" value="false" />
|
||||||
|
<option name="withSudo" value="false" />
|
||||||
|
<option name="buildTarget" value="REMOTE" />
|
||||||
|
<option name="backtrace" value="SHORT" />
|
||||||
|
<option name="isRedirectInput" value="false" />
|
||||||
|
<option name="redirectInputPath" value="" />
|
||||||
|
<method v="2">
|
||||||
|
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
19
.idea/runConfigurations/clippy_controller.xml
Normal file
19
.idea/runConfigurations/clippy_controller.xml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="clippy controller" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
|
||||||
|
<option name="command" value="clippy" />
|
||||||
|
<option name="workingDirectory" value="file://$PROJECT_DIR$/controller" />
|
||||||
|
<envs />
|
||||||
|
<option name="emulateTerminal" value="true" />
|
||||||
|
<option name="channel" value="DEFAULT" />
|
||||||
|
<option name="requiredFeatures" value="true" />
|
||||||
|
<option name="allFeatures" value="false" />
|
||||||
|
<option name="withSudo" value="false" />
|
||||||
|
<option name="buildTarget" value="REMOTE" />
|
||||||
|
<option name="backtrace" value="SHORT" />
|
||||||
|
<option name="isRedirectInput" value="false" />
|
||||||
|
<option name="redirectInputPath" value="" />
|
||||||
|
<method v="2">
|
||||||
|
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
19
.idea/runConfigurations/clippy_core.xml
Normal file
19
.idea/runConfigurations/clippy_core.xml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="clippy core" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
|
||||||
|
<option name="command" value="clippy" />
|
||||||
|
<option name="workingDirectory" value="file://$PROJECT_DIR$/core" />
|
||||||
|
<envs />
|
||||||
|
<option name="emulateTerminal" value="true" />
|
||||||
|
<option name="channel" value="DEFAULT" />
|
||||||
|
<option name="requiredFeatures" value="true" />
|
||||||
|
<option name="allFeatures" value="false" />
|
||||||
|
<option name="withSudo" value="false" />
|
||||||
|
<option name="buildTarget" value="REMOTE" />
|
||||||
|
<option name="backtrace" value="SHORT" />
|
||||||
|
<option name="isRedirectInput" value="false" />
|
||||||
|
<option name="redirectInputPath" value="" />
|
||||||
|
<method v="2">
|
||||||
|
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
8
.idea/runConfigurations/run_all.xml
Normal file
8
.idea/runConfigurations/run_all.xml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="run all" type="CompoundRunConfigurationType">
|
||||||
|
<toRun name="Run controller" type="CargoCommandRunConfiguration" />
|
||||||
|
<toRun name="Run controller2" type="CargoCommandRunConfiguration" />
|
||||||
|
<toRun name="Run core" type="CargoCommandRunConfiguration" />
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
</component>
|
15
Makefile
15
Makefile
|
@ -1,8 +1,6 @@
|
||||||
configs:
|
configs:
|
||||||
$(MAKE) -C core config
|
$(MAKE) -C core config
|
||||||
ln -s core/emgauwa-core.json emgauwa-core.json
|
|
||||||
$(MAKE) -C controller config
|
$(MAKE) -C controller config
|
||||||
ln -s controller/emgauwa-controller.json emgauwa-controller.json
|
|
||||||
|
|
||||||
git-clone-http:
|
git-clone-http:
|
||||||
git clone https://git.serguzim.me/emgauwa/common.git
|
git clone https://git.serguzim.me/emgauwa/common.git
|
||||||
|
@ -18,16 +16,3 @@ git-status:
|
||||||
@printf "===== COMMON =====\n" && cd common && git status
|
@printf "===== COMMON =====\n" && cd common && git status
|
||||||
@printf "\n\n===== CORE =====\n" && cd core && git status
|
@printf "\n\n===== CORE =====\n" && cd core && git status
|
||||||
@printf "\n\n===== CONTROLLER =====\n" && cd controller && git status
|
@printf "\n\n===== CONTROLLER =====\n" && cd controller && git status
|
||||||
|
|
||||||
|
|
||||||
emgauwa-core_%:
|
|
||||||
$(TOOL) build --target $* --release
|
|
||||||
mkdir -p out/releases
|
|
||||||
cp target/$*/release/emgauwa-core out/releases/emgauwa-core_$*
|
|
||||||
cp target/$*/release/emgauwa-controller out/releases/emgauwa-controller_$*
|
|
||||||
|
|
||||||
releases:
|
|
||||||
$(MAKE) TOOL=cross emgauwa-core_arm-unknown-linux-gnueabihf
|
|
||||||
$(MAKE) TOOL=cargo emgauwa-core_x86_64-unknown-linux-gnu
|
|
||||||
$(MAKE) TOOL=cross emgauwa-core_x86_64-unknown-linux-musl
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue