Skip to content

Commit

Permalink
Update for Code::Blocks Release 17.12
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
ywx committed Jan 17, 2018
1 parent 9832f91 commit 069f24f
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 52 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*.[oa]
*.obj
# Ignore build
bin
cbplugin
*.dll
*.so
*.zip
Expand Down
34 changes: 16 additions & 18 deletions ArmNoneEabiWizard-unix.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -7,63 +7,61 @@
<Option compiler="gcc" />
<Build>
<Target title="Unix Debug">
<Option output="ArmNoneEabiWizard" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/debug" />
<Option output="cbplugin/unix/debug/ArmNoneEabiWizard" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/unix/debug" />
<Option type="3" />
<Option parameters="--debug-log --no-dde --no-check-associations --multiple-instance --no-splash-screen --verbose -p debug" />
<Option compiler="gcc" />
<Option host_application="codeblocks" />
<Option run_host_application_in_terminal="0" />
<Compiler>
<Add option="-ansi" />
<Add option="-g" />
<Add option="`pkg-config --cflags codeblocks`" />
<Add option="`wx-config --cflags`" />
<Add option="-fPIC" />
<Add option="-DcbDEBUG" />
<Add option="-DEXPORT_FUNC" />
</Compiler>
<Linker>
<Add option="`pkg-config --libs codeblocks`" />
<Add option="`wx-config --libs`" />
</Linker>
<ExtraCommands>
<Add after="zip -j9 ArmNoneEabiWizard.zip manifest.xml" />
<Add after="zip -j9 ArmNoneEabiWizard.zip data/jlinkdevices.csv" />
<Add after="zip -j9 ArmNoneEabiWizard.cbplugin data/templates.7z" />
<Add after="zip -j9 ArmNoneEabiWizard.cbplugin ArmNoneEabiWizard.so ArmNoneEabiWizard.zip" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip manifest.xml" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip data/jlinkdevices.csv" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).cbplugin data/templates.7z" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).cbplugin $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip" />
<Mode after="always" />
</ExtraCommands>
</Target>
<Target title="Unix Release">
<Option output="ArmNoneEabiWizard" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/release" />
<Option output="cbplugin/unix/release/ArmNoneEabiWizard" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/unix/release" />
<Option type="3" />
<Option compiler="gcc" />
<Option host_application="codeblocks" />
<Option run_host_application_in_terminal="0" />
<Compiler>
<Add option="-ansi" />
<Add option="-O2" />
<Add option="`pkg-config --cflags codeblocks`" />
<Add option="`wx-config --cflags`" />
<Add option="-fPIC" />
<Add option="-DEXPORT_FUNC" />
</Compiler>
<Linker>
<Add option="-s" />
<Add option="`pkg-config --libs codeblocks`" />
<Add option="`wx-config --libs`" />
</Linker>
<ExtraCommands>
<Add after="zip -j9 ArmNoneEabiWizard.zip manifest.xml" />
<Add after="zip -j9 ArmNoneEabiWizard.zip data/jlinkdevices.csv" />
<Add after="zip -j9 ArmNoneEabiWizard.cbplugin data/templates.7z" />
<Add after="zip -j9 ArmNoneEabiWizard.cbplugin ArmNoneEabiWizard.so ArmNoneEabiWizard.zip" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip manifest.xml" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip data/jlinkdevices.csv" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).cbplugin data/templates.7z" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).cbplugin $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip" />
<Mode after="always" />
</ExtraCommands>
</Target>
</Build>
<Compiler>
<Add option="-std=c++11" />
<Add option="-fPIC" />
</Compiler>
<Unit filename="ArmNoneEabiWizard.cpp" />
<Unit filename="ArmNoneEabiWizard.h" />
<Unit filename="manifest.xml" />
Expand Down
84 changes: 52 additions & 32 deletions ArmNoneEabiWizard.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
<Option compiler="gcc" />
<Build>
<Target title="Win32 Debug">
<Option output="ArmNoneEabiWizard" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/Debug" />
<Option external_deps="$(#cb)/devel/libcodeblocks.a;" />
<Option output="cbplugin/win/debug/ArmNoneEabiWizard" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/win/debug" />
<Option type="3" />
<Option compiler="gcc" />
<Option parameters="--debug-log --no-dde --no-check-associations --multiple-instance --no-splash-screen --verbose -p debug" />
Expand All @@ -22,6 +21,7 @@
<Add option="-fmessage-length=0" />
<Add option="-fexceptions" />
<Add option="-Winvalid-pch" />
<Add option="-std=gnu++11" />
<Add option="-DBUILDING_PLUGIN" />
<Add option="-DHAVE_W32API_H" />
<Add option="-D__WXMSW__" />
Expand All @@ -31,6 +31,7 @@
<Add option="-DWX_PRECOMP" />
<Add option="-DwxUSE_UNICODE" />
<Add directory="$(#cb)/include" />
<Add directory="$(#cb)/include/tinyxml" />
<Add directory="$(#cb)/include/scripting/include" />
<Add directory="$(#cb)/include/scripting/sqplus" />
<Add directory="$(#cb)/sdk/wxscintilla/include" />
Expand All @@ -49,17 +50,16 @@
<Add directory="$(#wx.lib)/gcc_dll" />
</Linker>
<ExtraCommands>
<Add after="zip -j9 ArmNoneEabiWizard.zip manifest.xml" />
<Add after="zip -j9 ArmNoneEabiWizard.zip data/jlinkdevices.csv" />
<Add after="zip -j9 ArmNoneEabiWizard.cbplugin data/templates.7z" />
<Add after="zip -j9 ArmNoneEabiWizard.cbplugin ArmNoneEabiWizard.dll ArmNoneEabiWizard.zip" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip manifest.xml" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip data/jlinkdevices.csv" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).cbplugin data/templates.7z" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).cbplugin $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip" />
<Mode after="always" />
</ExtraCommands>
</Target>
<Target title="Win32 Release">
<Option output="ArmNoneEabiWizard" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/Release" />
<Option external_deps="$(#cb)/devel/libcodeblocks.a;" />
<Option output="cbplugin/win/release/ArmNoneEabiWizard" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/win/release" />
<Option type="3" />
<Option compiler="gcc" />
<Option host_application="$(#cb)/devel/codeblocks.exe" />
Expand All @@ -71,6 +71,7 @@
<Add option="-fmessage-length=0" />
<Add option="-fexceptions" />
<Add option="-Winvalid-pch" />
<Add option="-std=gnu++11" />
<Add option="-DBUILDING_PLUGIN" />
<Add option="-DHAVE_W32API_H" />
<Add option="-D__WXMSW__" />
Expand All @@ -79,6 +80,7 @@
<Add option="-DWX_PRECOMP" />
<Add option="-DwxUSE_UNICODE" />
<Add directory="$(#cb)/include" />
<Add directory="$(#cb)/include/tinyxml" />
<Add directory="$(#cb)/include/scripting/include" />
<Add directory="$(#cb)/include/scripting/sqplus" />
<Add directory="$(#cb)/sdk/wxscintilla/include" />
Expand All @@ -98,67 +100,85 @@
<Add directory="$(#wx.lib)/gcc_dll" />
</Linker>
<ExtraCommands>
<Add after="zip -j9 ArmNoneEabiWizard.zip manifest.xml" />
<Add after="zip -j9 ArmNoneEabiWizard.zip data/jlinkdevices.csv" />
<Add after="zip -j9 ArmNoneEabiWizard.cbplugin data/templates.7z" />
<Add after="zip -j9 ArmNoneEabiWizard.cbplugin ArmNoneEabiWizard.dll ArmNoneEabiWizard.zip" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip manifest.xml" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip data/jlinkdevices.csv" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).cbplugin data/templates.7z" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).cbplugin $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip" />
<Mode after="always" />
</ExtraCommands>
</Target>
<Target title="Unix Debug">
<Option output="ArmNoneEabiWizard" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/debug" />
<Target title="Linux default">
<Option output="cbplugin/unix/debug/ArmNoneEabiWizard" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/unix/debug" />
<Option type="3" />
<Option parameters="--debug-log --no-dde --no-check-associations --multiple-instance --no-splash-screen --verbose -p debug" />
<Option compiler="gcc" />
<Option host_application="codeblocks" />
<Option run_host_application_in_terminal="0" />
<Compiler>
<Add option="-ansi" />
<Add option="-std=c++11" />
<Add option="-g" />
<Add option="`pkg-config --cflags codeblocks`" />
<Add option="`wx-config --cflags`" />
<Add option="-fPIC" />
<Add option="-DcbDEBUG" />
<Add option="-DEXPORT_FUNC" />
<Add directory="$(#cb)/include" />
<Add directory="$(#cb)/include/tinyxml" />
<Add directory="$(#cb)/include/scripting/include" />
<Add directory="$(#cb)/include/scripting/sqplus" />
<Add directory="$(#cb)/sdk/wxscintilla/include" />
<Add directory="$(#cb)/include/codeblocks" />
<Add directory="$(#cb)/include/codeblocks/tinyxml" />
<Add directory="$(#cb)/include/codeblocks/scripting/include" />
<Add directory="$(#cb)/include/codeblocks/scripting/sqplus" />
<Add directory="$(#cb)/include/codeblocks/wxscintilla/include" />
</Compiler>
<Linker>
<Add option="`pkg-config --libs codeblocks`" />
<Add option="`wx-config --libs`" />
</Linker>
<ExtraCommands>
<Add after="zip -j9 ArmNoneEabiWizard.zip manifest.xml" />
<Add after="zip -j9 ArmNoneEabiWizard.zip data/jlinkdevices.csv" />
<Add after="zip -j9 ArmNoneEabiWizard.cbplugin data/templates.7z" />
<Add after="zip -j9 ArmNoneEabiWizard.cbplugin ArmNoneEabiWizard.so ArmNoneEabiWizard.zip" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip manifest.xml" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip data/jlinkdevices.csv" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).cbplugin data/templates.7z" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).cbplugin $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip" />
<Mode after="always" />
</ExtraCommands>
</Target>
<Target title="Unix Release">
<Option output="ArmNoneEabiWizard" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/release" />
<Target title="Linux Release">
<Option output="cbplugin/unix/release/ArmNoneEabiWizard" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/unix/release" />
<Option type="3" />
<Option compiler="gcc" />
<Option host_application="codeblocks" />
<Option run_host_application_in_terminal="0" />
<Compiler>
<Add option="-ansi" />
<Add option="-std=c++11" />
<Add option="-O2" />
<Add option="`pkg-config --cflags codeblocks`" />
<Add option="`wx-config --cflags`" />
<Add option="-fPIC" />
<Add option="-DEXPORT_FUNC" />
<Add directory="$(#cb)/include" />
<Add directory="$(#cb)/include/tinyxml" />
<Add directory="$(#cb)/include/scripting/include" />
<Add directory="$(#cb)/include/scripting/sqplus" />
<Add directory="$(#cb)/sdk/wxscintilla/include" />
<Add directory="$(#cb)/include/codeblocks" />
<Add directory="$(#cb)/include/codeblocks/tinyxml" />
<Add directory="$(#cb)/include/codeblocks/scripting/include" />
<Add directory="$(#cb)/include/codeblocks/scripting/sqplus" />
<Add directory="$(#cb)/include/codeblocks/wxscintilla/include" />
</Compiler>
<Linker>
<Add option="-s" />
<Add option="`pkg-config --libs codeblocks`" />
<Add option="`wx-config --libs`" />
</Linker>
<ExtraCommands>
<Add after="zip -j9 ArmNoneEabiWizard.zip manifest.xml" />
<Add after="zip -j9 ArmNoneEabiWizard.zip data/jlinkdevices.csv" />
<Add after="zip -j9 ArmNoneEabiWizard.cbplugin data/templates.7z" />
<Add after="zip -j9 ArmNoneEabiWizard.cbplugin ArmNoneEabiWizard.so ArmNoneEabiWizard.zip" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip manifest.xml" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip data/jlinkdevices.csv" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).cbplugin data/templates.7z" />
<Add after="zip -j9 $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).cbplugin $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).zip" />
<Mode after="always" />
</ExtraCommands>
</Target>
Expand Down
Binary file modified data/templates.7z
Binary file not shown.
45 changes: 43 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ For information on emIDE, please see http://www.emide.org/

Setup and Use
=====================================

Before Code::Blocks Release 17.12
-------------------------------------
1, Download A Extended Scripted Wizard Plugin for Code::Blocks source code, Build the scriptedwizard.cbplugin
or Download prebuilt scriptedwizard.cbplugin from https://github.com/ywx/cbScriptedWizardPlugin/releases
2, Download Arm none eabi Wizard Plugin for Code::Blocks source code, Build the ArmNoneEabiWizard.cbplugin
Expand All @@ -74,14 +77,32 @@ Setup and Use
6, Reboot Code::Blocks, Enable the Scripted wizard in Code::Blocks Manage plugins Dialog
7, Now New Project, Arm Embedded App will appear in New from template Dialog


For Code::Blocks Release 17.12 or Later
-------------------------------------
1, Download Arm none eabi Wizard Plugin for Code::Blocks source code, Build the ArmNoneEabiWizard.cbplugin
or Download prebuilt ArmNoneEabiWizard.cbplugin from https://github.com/ywx/cbArmNoneEabiWizard/releases
2, Download and Install GNU Tools for ARM Embedded Processors, Set "GNU GCC Compiler for ARM" for GNU Tools for ARM Embedded Processors in Code::Blocks Compiler settings Dialog
3, Uncheck "Install system-wide,for all users of this machine (requires administrative rights)" and "Ask for confirmation if conflicts arise" in Code::Blocks Manage plugins Dialog, Install ArmNoneEabiWizard.cbplugin, Close Code::Blocks
4, Extract the templates.7z in the Code::Blocks Data folder in user's dir
5, Reboot Code::Blocks
6, Now New Project, Arm Embedded App will appear in New from template Dialog

For information on A Extended Scripted Wizard Plugin for Code::Blocks, please see https://github.com/ywx/cbScriptedWizardPlugin
For information on ARM, please see http://www.arm.com/
For information on GNU Tools for ARM Embedded Processors, please see https://launchpad.net/gcc-arm-embedded
For information on Renesas, please see http://www.renesas.com/
For information on KPIT GNU Tools, please see http://www.kpitgnutools.com/

Code::Blocks Data folder in user's dir:
On Windows
C:\Users\user\AppData\Roaming\CodeBlocks\share\codeblocks codeblocks.exe
Or <codeblocks install dir>\AppData\codeblocks\share\codeblocks CbLauncher.exe
On Linux
/home/user/.local/share/codeblocks


Last updated: February 6th 2016
Last updated: January 17th 2018



Expand Down Expand Up @@ -143,6 +164,9 @@ git clone git://github.com/ywx/cbArmNoneEabiWizard.git cbArmNoneEabiWizard-ReadO

安装使用
=====================================

Code::Blocks Release 17.12 之前的版本
-------------------------------------
1, 下载 A Extended Scripted Wizard Plugin for Code::Blocks 源代码, 编译构建 scriptedwizard.cbplugin
或 从 https://github.com/ywx/cbScriptedWizardPlugin/releases 下载预编译的 scriptedwizard.cbplugin
2, 下载 Arm none eabi Wizard Plugin for Code::Blocks 源代码, 编译构建 ArmNoneEabiWizard.cbplugin
Expand All @@ -153,14 +177,31 @@ git clone git://github.com/ywx/cbArmNoneEabiWizard.git cbArmNoneEabiWizard-ReadO
6, 重启 Code::Blocks, 在 Manage plugins Dialog 中 Enable the Scripted wizard 插件
7, 现在 New Project, Arm Embedded App 会出现在 New from template Dialog

Code::Blocks Release 17.12 及以后版本
-------------------------------------
1, 下载 Arm none eabi Wizard Plugin for Code::Blocks 源代码, 编译构建 ArmNoneEabiWizard.cbplugin
或 从 https://github.com/ywx/cbArmNoneEabiWizard/releases 下载预编译的 ArmNoneEabiWizard.cbplugin
2, 下载并安装 GNU Tools for ARM Embedded Processors, 在 Code::Blocks Compiler settings Dialog 中,为 GNU Tools for ARM Embedded Processors 配置 "GNU GCC Compiler for ARM"
3, 在 Code::Blocks Manage plugins Dialog 中 Uncheck "Install system-wide,for all users of this machine (requires administrative rights)" 和 "Ask for confirmation if conflicts arise", 安装构建好的 ArmNoneEabiWizard.cbplugin, 然后关闭 Code::Blocks
4, 在 Code::Blocks Data folder in user's dir 中解压 templates.7z
5, 重启 Code::Blocks
6, 现在 New Project, Arm Embedded App 会出现在 New from template Dialog

关于 A Extended Scripted Wizard Plugin for Code::Blocks, 请访问 https://github.com/ywx/cbScriptedWizardPlugin
关于 ARM, 请访问 http://www.arm.com/
关于 GNU Tools for ARM Embedded Processors, 请访问 https://launchpad.net/gcc-arm-embedded
关于 Renesas, 请访问 http://www.renesas.com/
关于 KPIT GNU Tools, 请访问 http://www.kpitgnutools.com/

Code::Blocks Data folder in user's dir:
在 Windows 操作系统典型路径
C:\Users\user\AppData\Roaming\CodeBlocks\share\codeblocks 由codeblocks.exe启动
Or <codeblocks install dir>\AppData\codeblocks\share\codeblocks 由CbLauncher.exe启动
在 Linux 操作系统典型路径
/home/user/.local/share/codeblocks


Arm none eabi Wizard Plugin 只是将 emIDE Embedded Application Wizard 移植到 Code::Blocks Release。


最后更新: 2016-2-6
最后更新: 2018-1-17

0 comments on commit 069f24f

Please sign in to comment.