Preferences/ProgramsDialog.py

changeset 5968
c5112b5cb7a9
parent 5878
74d02cd37185
child 5970
411f7ba577d5
--- a/Preferences/ProgramsDialog.py	Sat Nov 11 18:47:09 2017 +0100
+++ b/Preferences/ProgramsDialog.py	Sun Nov 12 19:42:02 2017 +0100
@@ -197,13 +197,23 @@
             Utilities.isWindowsPlatform() and "rbrcc.exe" or "rbrcc",
             '-version', 'Ruby Resource Compiler', -1)
         
-        # 5. do the CORBA programs
+        # 5. do the CORBA and Protobuf programs
         # 5a. omniORB
         exe = Preferences.getCorba("omniidl")
+        if not exe:
+            exe = "omniidl"
         if Utilities.isWindowsPlatform():
             exe += ".exe"
         self.__createProgramEntry(
             self.tr("CORBA IDL Compiler"), exe, '-V', 'omniidl', -1)
+        # 5b. protobuf
+        exe = Preferences.getProtobuf("protoc")
+        if not exe:
+            exe = "protoc"
+        if Utilities.isWindowsPlatform():
+            exe += ".exe"
+        self.__createProgramEntry(
+            self.tr("Protobuf Compiler"), exe, '--version', 'libprotoc', -1)
         
         # 6. do the spell checking entry
         try:

eric ide

mercurial