Skip to content

Commit d33114c

Browse files
author
Drizzy
committed
version 1.1.0
1 parent 17d1d7b commit d33114c

File tree

7 files changed

+67
-129
lines changed

7 files changed

+67
-129
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
### [v1.1.0](https://github.com/drizzy/vscode-code-make/releases/tag/v1.1.0)
4+
5+
> 22 November 2023
6+
7+
### Features
8+
9+
- Makefile change to support libraries like gkmm.h
10+
311
### [v1.0.2](https://github.com/drizzy/vscode-code-make/releases/tag/v1.0.2)
412

513
> 01 February 2023

README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,35 @@
44
[![Downloads](https://vsmarketplacebadges.dev/downloads-short/drizzy.code-make.svg)](https://marketplace.visualstudio.com/items?itemName=drizzy.code-make)
55
[![Rating](https://vsmarketplacebadges.dev/rating-short/drizzy.code-make.svg)](https://marketplace.visualstudio.com/items?itemName=drizzy.code-make)
66

7+
78
## Features
89

9-
Create projects in c++ Compile and run the program directly from the vscode interface just by pressing an icon.
10+
Create C++ projects, compile, and run programs directly from the VSCode interface with a simple click.
1011

1112
## Requirements
1213

13-
* You have to have `make` installed on your computer ([see instructions](docs/SETUP.md#make))
14-
* If you are on linux you must install `gcc` ([see instructions](docs/ETUP.md#linux))
15-
* If you are on window you must install `mingw` ([see instructions](docs/SETUP.md#windows))
16-
* If you are on mac os you must install `clang` ([see instructions](docs/SETUP.md#mac))
14+
- You must have `make` installed on your computer. [See instructions](docs/SETUP.md#make)
15+
- For Linux, install `gcc`. [See instructions](docs/SETUP.md#linux)
16+
- For Windows, install `mingw`. [See instructions](docs/SETUP.md#windows)
17+
- For macOS, install `clang`. [See instructions](docs/SETUP.md#mac)
18+
1719

1820
## How to use
1921

20-
After installing the extension I'm sure you saw a `+` symbol in the bottom left corner, if you click on it it will create a C++ project structure for you.
21-
To compile just click the gear wheel, the play symbol to run the program, the trash can to delete files from the `bin` and `obj` directories, and x is to delete both directories.
22+
After installing the extension, click on the `+` symbol in the bottom left corner to create a C++ project structure. Use the gear wheel to compile, the play symbol to run the program, the trash can to delete files from the `bin` and `obj` directories, and 'x' to delete both directories.
23+
2224

2325
## Keybindings
24-
| Linux | Windows | Mac | Description |
25-
| ------------ | ------------ | ------------ | ------------ |
26-
| ctrl+alt+f | ctrl+alt+f | ctrl+alt+f | Make Create Folder |
27-
| ctrl+alt+b | ctrl+alt+b | ctrl+alt+b | Make Build Folder |
28-
| ctrl+alt+r | ctrl+alt+r | ctrl+alt+r | Make Run Folder |
29-
| ctrl+alt+c | ctrl+alt+c | ctrl+alt+c | Make Clean Folder |
30-
| ctrl+alt+d | ctrl+alt+d | ctrl+alt+d | Make Delete Folder |
26+
27+
| Linux | Windows | Mac | Description |
28+
| ------------- | ------------- | ------------- | ------------------- |
29+
| ctrl+alt+f | ctrl+alt+f | ctrl+alt+f | Make Create Folder |
30+
| ctrl+alt+b | ctrl+alt+b | ctrl+alt+b | Make Build Folder |
31+
| ctrl+alt+r | ctrl+alt+r | ctrl+alt+r | Make Run Folder |
32+
| ctrl+alt+c | ctrl+alt+c | ctrl+alt+c | Make Clean Folder |
33+
| ctrl+alt+d | ctrl+alt+d | ctrl+alt+d | Make Delete Folder |
34+
3135

3236
## Release Notes
3337

34-
Refer to [CHANGELOG](CHANGELOG.md)
38+
Refer to [CHANGELOG](CHANGELOG.md) for detailed release notes.

docs/SETUP.md

Lines changed: 33 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,114 @@
11
# Install Make
22

3-
## windows
3+
## Windows
44

5-
- The easiest option is to use [Chocolatey](https://chocolatey.org/install) . First you need to install this package manager. Once installed,
6-
you can install `make` (you may need to run it in a terminal as administrator)
5+
The easiest way to install `make` on Windows is by using [Chocolatey](https://chocolatey.org/install). Follow these steps:
76

8-
Install chocolatey
9-
```bash
10-
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
11-
```
7+
1. Install Chocolatey by running the following command in a terminal with administrator privileges:
128

13-
Install make on windows
14-
```bash
15-
choco install make
16-
```
9+
```bash
10+
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
11+
```
12+
13+
2. Once Chocolatey is installed, run the following command to install `make`:
14+
15+
```bash
16+
choco install make
17+
```
1718

1819
## GNU/Linux
1920

20-
- Ensure `make` is installed
21-
- It is probably already installed to check open a terminal and execute the following command:
21+
Ensure that `make` is installed by checking its version:
2222

2323
```bash
2424
make --version
2525
```
2626

27-
- If it is not installed do the following
28-
29-
- Before installing the make package, it is better to update your already installed packages; otherwise you may encounter compatibility issues with some software. You can do it by typing.
27+
If it's not installed, follow the instructions for your distribution:
3028
3129
### Ubuntu
3230
33-
Update packages
3431
```bash
3532
sudo apt update
36-
```
37-
38-
Install make on ubuntu
39-
```bash
4033
sudo apt install build-essential
4134
```
42-
The command installs a bunch of new packages including `gcc`, `g++` and `make`.
43-
4435
4536
### Arch Linux
4637
47-
Update packages
4838
```bash
4939
sudo pacman -Syu
50-
```
51-
52-
Install make on Arch Linux
53-
```bash
5440
sudo pacman -S make
5541
```
5642
5743
## Mac
58-
- With Homebrew installed on your Mac it's super easy to install `make`, it may require root permissions.
5944
60-
- If you don't have [Homebrew](https://docs.brew.sh/Installation) installed, read the documentation on how to install it.
45+
If you're on macOS and have [Homebrew](https://docs.brew.sh/Installation) installed, you can easily install make with the following command:
6146

62-
Install make on Mac
6347
```bash
6448
brew install make
6549
```
6650

6751
# Install GCC
6852

6953
## Windows
70-
- Go to [ Mingw-w64](https://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download " Mingw-w64")
71-
72-
- Look for **mingw-get-setup.exe** for downloading. Download it and launch the installer. Accept the terms and move on.
73-
74-
- You'll now see that the installer is connecting to the Internet and downloading a lot of tiny and small files. Wait till it ends.
7554

76-
- Right when it ends (which won't take long), you'll be presented a window with title **MinGW Installation Manager.** You should be in the 'Basic Setup' tab by default when it launches. If not, click on **Basic Setup.**
55+
To install gcc on Windows, follow these steps:
7756

78-
- Out of the numerous check boxes presented to you on the right side, tick "**mingw32-gcc-g++-bin**". If you are prompted with a menu, click on Mark for Install.
57+
Download [ Mingw-w64](https://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download " Mingw-w64") and launch the installer.
7958

80-
- Then on the top left corner click on **Installation > Apply Changes.** And wait while it downloads a billion files and installs them.
59+
In the "MinGW Installation Manager," select "mingw32-gcc-g++-bin" and click "Installation > Apply Changes."
8160

82-
- Now you gotta edit your "Environment Variables" as well, so that gcc works in cmd no matter the file location.
83-
84-
- For that go to **Windows Explorer > Right click on This PC > Properties > Advanced system settings > Environment Variables** or you could just search for "Environment Variables" in Windows Search...
85-
86-
- At the bottom "System Variables" panel, look for a Variable named "Path" and double click on it. Some systems show a good UI for adding a New Path easily (by clicking New), else you just need to add ; at the end and add the following path
61+
Edit your "Environment Variables" by adding the following path to the end of the "Path" variable:
8762

8863
```bash
8964
C:\MinGW\bin
9065
```
91-
`(This is assuming you didn't manually change any installation paths and went with just clicking 'Next' during installation)`
66+
`(Assuming you didn't manually change any installation paths). Open a Command Prompt terminal and verify the installation with:`
9267
93-
- Click on OK, and OK and close the other windows. Open a Command Prompt Terminal and try typing and press Enter. `gcc --version`
68+
```bash
69+
gcc --version
70+
```
9471
9572
## GNU/Linux
9673
97-
- Ensure `gcc` is installed
98-
- It is probably already installed to check open a terminal and execute the following command:
74+
Ensure that gcc is installed by checking its version:
9975
10076
```bash
10177
gcc --version
10278
```
10379
104-
- If it is not installed do the following
80+
If it's not installed, follow the instructions for your distribution:
81+
10582
10683
### Ubuntu
10784
108-
Update packages
10985
```bash
11086
sudo apt update
111-
```
112-
113-
Install gcc on ubuntu
114-
```bash
11587
sudo apt install build-essential
116-
```
117-
The command installs a bunch of new packages including `gcc`, `g++` and `make`.
11888
89+
```
11990
12091
### Arch Linux
12192
122-
Update packages
12393
```bash
12494
sudo pacman -Syu
125-
```
126-
127-
Install gcc on Arch Linux
128-
```bash
12995
sudo pacman -S gcc
96+
13097
```
13198
13299
## Mac
133100
134-
- Ensure `Clang` is installed
135-
- It is probably already installed to check open a terminal and execute the following command:
101+
Ensure that Clang is installed by checking its version:
136102
137103
```bash
138104
clang --version
139105
```
140106
141-
- If it is not installed do the following
107+
If it's not installed, open "Terminal" and run the command:
142108
143-
- Open "Terminal" (it is located in Applications/Utilities)
144-
- In the terminal window, run the command
145109
```bash
146110
xcode-select --install
147111
```
148-
- In the windows that pops up, click , and agree to the Terms of Service. `Install`
149-
Once the installation is complete, the command line utilities should be set up property.
112+
In the window that pops up, click "Install" and agree to the Terms of Service. Once the installation is complete, the command line utilities should be set up properly.
113+
114+
Refer to the specific instructions for your operating system to install make and gcc successfully.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "code-make",
33
"displayName": "Code Make",
44
"description": "Creates c++ projects with configured Makefile",
5-
"version": "1.0.2",
5+
"version": "1.1.0",
66
"publisher": "drizzy",
77
"license": "MIT",
88
"icon": "icons/logo.png",

src/template/main.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
using namespace std;
44

5-
int main(int argc, char const *argv[])
5+
int main(int argc, char *argv[])
66
{
77
cout << "Hello, world\n";
88
return 0;

src/template/makefile.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ APPNAME := Example
55
CXX := g++
66

77
# define the FLAGS
8-
FLAGS := -Wall
8+
CFLAGS := -Wall $(shell pkg-config gtkmm-3.0 --cflags)
9+
10+
LFLAGS := $(shell pkg-config gtkmm-3.0 --libs)
911

1012
# define bin directory
1113
BIN := bin
@@ -62,7 +64,7 @@ else
6264
@mkdir -p $(OBJ)
6365
endif
6466
@echo $(CYAN)Compiling: $(RED)$(@F)$(RESET)
65-
@$(CXX) -I $(INC) -c $< -o $@
67+
@$(CXX) -I $(INC) -c $(CFLAGS) $< -o $@
6668

6769
# Generate executable
6870
$(TARGET): $(OBJS)
@@ -72,7 +74,7 @@ else
7274
@mkdir -p $(BIN)
7375
endif
7476
@echo $(CYAN)Creating executable: $(GREEN)$(@F)$(RESET)
75-
@$(CXX) $(OBJS) -o $@ $(FLAGS)
77+
@$(CXX) $(LFLAGS) $(OBJS) -o $@
7678

7779
.PHONY: run
7880
run:

vsc-extension-quickstart.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)